Has anyone come up with a recipe to prevent docker...
# general
b
Has anyone come up with a recipe to prevent docker builds from occurring if the image already exists on in the remote repository? I wrote a shell script which checks for an image with a specific name in the remote repo and would like to short circuit the package/publish steps if the shell script creates a marker/exits with a particular status code. I can do an
exit 1
, but then you get errors stating you have a failed target.
otherwise I have to do a run_shell_command to do the work of actually writing to the remote repo