Minor corrections
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user