Skip to content

Commit d41e4e4

Browse files
[ISSUE-3] Only check registry for images that should have been pushed.
1 parent 8811896 commit d41e4e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roles/docker_skip_hosts_in_registry/tasks/clear_skip_if_missing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
environment:
77
DOCKER_CLI_EXPERIMENTAL: enabled
88
# we don't need to keep checking after clearing skip_build_and_push
9-
when: skip_build_and_push
9+
# only build variants that are configured to push with this configuration should be checked
10+
when: (build_vars.push_when | default(false)) and skip_build_and_push
1011

1112
# when the image doesn't exist in the registry the above returns a non-zero, causing an exception
1213
rescue:

0 commit comments

Comments
 (0)