From 4ba693b4b68b303b439233fe226335af9b6c71a5 Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 21 Aug 2020 14:01:50 +0100 Subject: [PATCH] :construction_worker: Build and publish image on push (#7) --- .github/workflows/image.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/image.yml diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 0000000..edaa8f7 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,19 @@ +name: Publish Docker Image + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build (+ Publish If Tagged) + uses: docker/build-push-action@v1 + with: + username: ${{ github.actor }} + password: ${{ github.token }} + registry: docker.pkg.github.com + repository: ${{ github.repository }}/actions-document-publish + tag_with_ref: true + add_git_labels: true + push: ${{ startsWith(github.ref, 'refs/tags/') }}