skip docker build if SKIP_BUILD is set

This commit is contained in:
Yusef Napora 2020-06-22 16:26:47 -04:00
parent 9e348c049b
commit 92409c321c

View File

@ -74,6 +74,12 @@ trap "{ cleanup; }" EXIT
# make sure we have the commands we need
require_cmds jq docker rsync
if [[ "$SKIP_BUILD" == "" ]]; then
echo "Building latest docker image. Set SKIP_BUILD env var to any value to bypass."
require_cmds make
make docker
fi
# make temp dir for manifests
temp_base="/tmp"
if [[ "$TEMP" != "" ]]; then