mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Do not push to GCR on hotfix releases
This commit is contained in:
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user