piston/.github/workflows/repo-push.yaml

32 lines
907 B
YAML
Raw Normal View History

2021-03-14 00:57:37 +01:00
name: Publish Repo image
on:
2021-10-08 15:16:57 +02:00
push:
branches:
- master
- v3
paths:
- repo/**
2021-03-14 00:57:37 +01:00
jobs:
2021-10-08 15:16:57 +02:00
push_to_registry:
runs-on: ubuntu-latest
name: Build and Push Docker image to Github Packages
steps:
- name: Check out repo
uses: actions/checkout@v3
2021-10-08 15:16:57 +02:00
- name: Login to GitHub registry
uses: docker/login-action@v2
2021-10-08 15:16:57 +02:00
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
2021-03-14 00:57:37 +01:00
2021-10-08 15:16:57 +02:00
- name: Build and push repo
uses: docker/build-push-action@v4
2021-10-08 15:16:57 +02:00
with:
context: repo
pull: true
push: true
tags: |
docker.pkg.github.com/engineer-man/piston/repo-builder