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 }}