Skip to content

Commit b8b43fe

Browse files
authored
fix: push images being skipped if test-images is skipped
1 parent d9678ff commit b8b43fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-docker-artifacts.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@ jobs:
447447
name: Push images to push targets
448448
needs: [retag-images, get-flavors]
449449
# if? When should we do this? Always? Only for certain branches? If so, how should we define that, in the config.json?
450-
if: ${{ fromJson(needs.get-flavors.outputs.result).skip_push != true && fromJson(needs.get-flavors.outputs.result).push_to != '' }}
450+
# We need the always() && !cancelled() && !failure() because the test-images may have been skipped (which is fine), but this transitvely propagates through retag-images to here. See https://github.com/actions/runner/issues/491#issuecomment-1507495166
451+
if: ${{ always() && !cancelled() && !failure() && fromJson(needs.get-flavors.outputs.result).skip_push != true && fromJson(needs.get-flavors.outputs.result).push_to != '' }}
451452
uses: datavisyn/github-workflows/.github/workflows/build-docker-artifacts-trigger-push.yml@main
452453
secrets: inherit
453454
with:

0 commit comments

Comments
 (0)