Skip to content

Commit

Permalink
[ISSUE-3] Only check registry for images that should have been pushed.
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkemp-splunk committed May 13, 2020
1 parent 8811896 commit d41e4e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
environment:
DOCKER_CLI_EXPERIMENTAL: enabled
# we don't need to keep checking after clearing skip_build_and_push
when: skip_build_and_push
# only build variants that are configured to push with this configuration should be checked
when: (build_vars.push_when | default(false)) and skip_build_and_push

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

0 comments on commit d41e4e4

Please sign in to comment.