mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-27 02:14:14 +01:00
🐞 Fix parameter passing
This commit is contained in:
parent
bc786364d9
commit
747b32adb2
22
build.sh
22
build.sh
@ -76,14 +76,6 @@ case "${BRANCH}" in
|
|||||||
esac
|
esac
|
||||||
DOCKER_TAG="${DOCKER_TAG-${DOCKER_ORG}/${DOCKER_REPO}:${TAG}}"
|
DOCKER_TAG="${DOCKER_TAG-${DOCKER_ORG}/${DOCKER_REPO}:${TAG}}"
|
||||||
|
|
||||||
# caching is only ok for version tags
|
|
||||||
case "${TAG}" in
|
|
||||||
v*)
|
|
||||||
CACHE="${CACHE-}";;
|
|
||||||
*)
|
|
||||||
CACHE="${CACHE---no-cache}";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Checking which VARIANT to build
|
# Checking which VARIANT to build
|
||||||
if [ -z "$VARIANT" ]; then
|
if [ -z "$VARIANT" ]; then
|
||||||
DOCKERFILE="Dockerfile"
|
DOCKERFILE="Dockerfile"
|
||||||
@ -103,11 +95,15 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Docker options
|
DOCKER_OPTS=("${DOCKER_OPTS[@]}")
|
||||||
DOCKER_OPTS=(
|
|
||||||
"$CACHE"
|
# caching is only ok for version tags
|
||||||
--pull
|
case "${TAG}" in
|
||||||
)
|
v*) ;;
|
||||||
|
*) DOCKER_OPTS+=( "--no-cache" ) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
DOCKER_OPTS+=( "--pull" )
|
||||||
|
|
||||||
# Build args
|
# Build args
|
||||||
DOCKER_BUILD_ARGS=(
|
DOCKER_BUILD_ARGS=(
|
||||||
|
Loading…
Reference in New Issue
Block a user