From f7eab9e1a2a945891d1a157d0537b20cf5da4c28 Mon Sep 17 00:00:00 2001 From: janf Date: Mon, 27 Nov 2023 12:26:33 +0100 Subject: [PATCH] enable push on tags --- .github/workflows/build_and_deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index a5a7d04..d225c05 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -6,8 +6,6 @@ on: tags: - 'v*' pull_request: - tags: - - 'v*' env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository_owner }}/cogserver @@ -40,7 +38,7 @@ jobs: with: context: . file: Dockerfile - push: ${{ github.ref == 'refs/heads/main'}} + push: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')}} tags: | ${{ steps.meta.outputs.tags }}