1+ name : Image Promotion
12# This workflow will:
23# - build images for forked workflows
34# - tag stable for forked workflows
@@ -299,9 +300,17 @@ jobs:
299300 dry_run : false
300301 secrets : inherit
301302
302- tag-edge :
303+ tag-candidate :
304+ # pushes edge or release images to gcr/dev
305+ # for main: this keeps a copy of edge in gcr/dev
306+ # for release-*: this stages a release candidate in gcr/dev which can be used for release promotion
303307 name : Tag tested image as stable
304- needs : [checks, build-docker, build-docker-plus, build-docker-nap]
308+ needs :
309+ - checks
310+ - build-docker
311+ - build-docker-plus
312+ - build-docker-nap
313+ - tag-stable
305314 permissions :
306315 contents : read # To checkout repository
307316 id-token : write # To sign into Google Container Registry
@@ -311,9 +320,11 @@ jobs:
311320 target_tag : ${{ github.ref_name == github.event.repository.default_branch && 'edge' || github.ref_name }}
312321 dry_run : false
313322 secrets : inherit
323+ if : ${{ !cancelled() && !failure() }}
314324
315325 release-oss :
316- if : ${{ github.ref_name == github.event.repository.default_branch }}
326+ # pushes edge images to docker hub
327+ if : ${{ !cancelled() && !failure() && github.ref_name == github.event.repository.default_branch }}
317328 name : Release Docker OSS
318329 needs : [checks, build-docker]
319330 uses : ./.github/workflows/oss-release.yml
@@ -333,7 +344,8 @@ jobs:
333344 secrets : inherit
334345
335346 release-plus :
336- if : ${{ github.ref_name == github.event.repository.default_branch }}
347+ # pushes plus edge images to nginx registry
348+ if : ${{ !cancelled() && !failure() && github.ref_name == github.event.repository.default_branch }}
337349 name : Release Docker Plus
338350 needs : [checks, build-docker-plus, build-docker-nap]
339351 uses : ./.github/workflows/plus-release.yml
@@ -352,7 +364,7 @@ jobs:
352364 secrets : inherit
353365
354366 publish-helm-chart :
355- if : ${{ github.ref_name == github.event.repository.default_branch }}
367+ if : ${{ !cancelled() && !failure() && github.ref_name == github.event.repository.default_branch }}
356368 name : Publish Helm Chart
357369 needs : [checks]
358370 uses : ./.github/workflows/publish-helm.yml
@@ -367,7 +379,7 @@ jobs:
367379 secrets : inherit
368380
369381 certify-openshift-images :
370- if : ${{ github.ref_name == github.event.repository.default_branch }}
382+ if : ${{ !cancelled() && !failure() && github.ref_name == github.event.repository.default_branch }}
371383 name : Certify OpenShift UBI images
372384 runs-on : ubuntu-22.04
373385 needs : [release-oss]
0 commit comments