Updated build script

This commit is contained in:
bkraul 2024-07-04 18:05:46 +00:00
parent 611524da85
commit dde9d00c42

4
build
View File

@ -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}..."