Do not push to GCR on hotfix releases

This commit is contained in:
Andrew Dryga
2023-10-24 00:16:59 -06:00
parent 0de24b7ea7
commit 0d8f87ec81

View File

@@ -17,6 +17,10 @@ on:
type: boolean
env:
# TODO: when a manual release is pushed this version will be used all the time,
# but for hotfixes we must make sure that the `make version` is called before it.defaults:
# Maybe we can make it part of cd.yml?
#
# mark:automatic-version
VERSION: "1.20231001.0"
@@ -122,7 +126,7 @@ jobs:
"Apply Run from GitHub Actions CI ${{ inputs.tag || github.sha }}"
publish-images-to-ghcr:
if: github.ref == 'refs/heads/main'
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'release' }}
needs: deploy-production
runs-on: ubuntu-22.04
strategy: