Skip to content
Snippets Groups Projects
Commit 7d09ca55 authored by François  LAURENT's avatar François LAURENT
Browse files

--no-cache has become necessary with docker build

parent a8d2ad37
No related branches found
No related tags found
1 merge request!10Set of commits to be tagged v0.16.1
Pipeline #106520 passed
......@@ -22,6 +22,10 @@ for _ in $(seq $#); do
shift
;;
*)
if [ "$1" = "--no-cache" ]; then
# --no-cache is default for build since 0.16.1
no_cache=1
fi
# note: if DOCKER_ARGS is externally defined, it must end with an explicit space
DOCKER_ARGS="${DOCKER_ARGS}$1 "
shift
......@@ -78,12 +82,15 @@ DOCKER_ARGS="--build-arg BACKEND=${1:15} $DOCKER_ARGS"; shift
TARGET=backend
elif [ "$1" = "--no-cache" ]; then
echo "Deprecation warning: argument $1 should now be passed before build"
DOCKER_ARGS="--no-cache $DOCKER_ARGS"; shift
shift
else
echo "argument not supported: $1"; shift
exit 1
fi
done
if [ -z "$no_cache" ]; then
DOCKER_ARGS="--no-cache $DOCKER_ARGS"
fi
DOCKER_ARGS="--target $TARGET $DOCKER_ARGS"
if [ "$BUILD" == "--dev" ]; then
if ! [[ "$LARVATAGGER_IMAGE" == *:* ]]; then LARVATAGGER_IMAGE="${LARVATAGGER_IMAGE}:dev"; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment