1
+ name : Image Promotion
1
2
# This workflow will:
2
3
# - build images for forked workflows
3
4
# - tag stable for forked workflows
@@ -299,9 +300,17 @@ jobs:
299
300
dry_run : false
300
301
secrets : inherit
301
302
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
303
307
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
305
314
permissions :
306
315
contents : read # To checkout repository
307
316
id-token : write # To sign into Google Container Registry
@@ -311,9 +320,11 @@ jobs:
311
320
target_tag : ${{ github.ref_name == github.event.repository.default_branch && 'edge' || github.ref_name }}
312
321
dry_run : false
313
322
secrets : inherit
323
+ if : ${{ !cancelled() && !failure() }}
314
324
315
325
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 }}
317
328
name : Release Docker OSS
318
329
needs : [checks, build-docker]
319
330
uses : ./.github/workflows/oss-release.yml
@@ -333,7 +344,8 @@ jobs:
333
344
secrets : inherit
334
345
335
346
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 }}
337
349
name : Release Docker Plus
338
350
needs : [checks, build-docker-plus, build-docker-nap]
339
351
uses : ./.github/workflows/plus-release.yml
@@ -352,7 +364,7 @@ jobs:
352
364
secrets : inherit
353
365
354
366
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 }}
356
368
name : Publish Helm Chart
357
369
needs : [checks]
358
370
uses : ./.github/workflows/publish-helm.yml
@@ -367,7 +379,7 @@ jobs:
367
379
secrets : inherit
368
380
369
381
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 }}
371
383
name : Certify OpenShift UBI images
372
384
runs-on : ubuntu-22.04
373
385
needs : [release-oss]
0 commit comments