Updated build script
This commit is contained in:
parent
611524da85
commit
dde9d00c42
4
build
4
build
|
@ -39,7 +39,9 @@ do
|
||||||
|
|
||||||
# pull the parent image from docker hub, if it doesn't already exist locally.
|
# pull the parent image from docker hub, if it doesn't already exist locally.
|
||||||
LOCAL_EXISTS=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -x ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG})
|
LOCAL_EXISTS=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep -x ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG})
|
||||||
if [[ $FORCE_LOCAL == 1 && $LOCAL_EXISTS != "" ]]; then
|
echo "LOCAL_EXISTS: $LOCAL_EXISTS"
|
||||||
|
echo "USE_LOCAL: $USE_LOCAL"
|
||||||
|
if [[ $USE_LOCAL == 1 && $LOCAL_EXISTS != "" ]]; then
|
||||||
echo "Using local image ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG}..."
|
echo "Using local image ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG}..."
|
||||||
else
|
else
|
||||||
echo "Pulling upstream image ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG}..."
|
echo "Pulling upstream image ${UPSTREAM_IMAGE}:${UPSTREAM_IMAGE_TAG}..."
|
||||||
|
|
Loading…
Reference in New Issue
Block a user