From: Ruben ten Hove Date: Wed, 6 Jul 2022 17:19:05 +0000 (-0400) Subject: push on tags as well X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=787401a4409c1fd23e886e312a377e5c23fe3d1a;p=stevenblack-hosts.git push on tags as well --- diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 0b4e54113..7a68a7385 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -1,11 +1,11 @@ -# Based on https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#publishing-a-package-using-an-action - name: Create and publish a container image on: push: branches: - master + tags: + - "*" env: REGISTRY: ghcr.io @@ -38,6 +38,6 @@ jobs: uses: docker/build-push-action@v3 with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}