Minor corrections

This commit is contained in:
2024-06-03 12:31:34 +00:00
parent 90ecdad357
commit 767bed3097
2 changed files with 21 additions and 10 deletions
+2 -2
View File
@@ -2,6 +2,7 @@
# use this as: PUSH=0 ./build ... in order to set the variable. default is PUSH=1
PUSH=${PUSH:-1}
# use this as: FORCE=1 ./build ... in order to set the variable. default is FORCE=0
FORCE=${FORCE:-0}
if [ ! "$1" == "" ]; then
@@ -49,7 +50,6 @@ do
# nothing to do, the image already exists.
echo Image ${IMAGE}:${IMAGE_TAG} already exists.
echo "----------------------------"
echo "FORCE: $FORCE"
if [ $FORCE == 0 ]; then continue; fi
fi
@@ -68,7 +68,7 @@ do
# image doesn't exist we need build and push
echo Image ${IMAGE}:${IMAGE_TAG} does not exist.
echo "Building image(s)..."
#--file ${DOCKERFILE} \
docker build \
--file ${DOCKERFILE} \
--no-cache \