push on tags as well
authorRuben ten Hove <redacted>
Wed, 6 Jul 2022 17:19:05 +0000 (13:19 -0400)
committerRuben ten Hove <redacted>
Wed, 6 Jul 2022 17:19:05 +0000 (13:19 -0400)
.github/workflows/container.yml

index 0b4e54113cdcdbc9f4cd7594b5cbe1cb3ea00a74..7a68a73853d0dc2a463e5f2bd4a12d207b38bd51 100644 (file)
@@ -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 }}
git clone https://git.99rst.org/PROJECT