1
0
stack-orchestrator/app/data/container-build/build-base.sh
David Boreham 332085f80b Add force rebuild option (#329)
Former-commit-id: 1443c6c6d20f3e9f95432e87ea61109c6b0f1beb
2023-04-14 14:19:27 -06:00

14 lines
438 B
Bash
Executable File

# source'ed into container build scripts to do generic command setup
if [[ -n "$CERC_SCRIPT_DEBUG" ]]; then
set -x
echo "Build environment variables:"
env
fi
build_command_args=""
if [[ ${CERC_FORCE_REBUILD} == "true" ]]; then
build_command_args="${build_command_args} --no-cache"
fi
if [[ -n "$CERC_CONTAINER_EXTRA_BUILD_ARGS" ]]; then
build_command_args="${build_command_args} ${CERC_CONTAINER_EXTRA_BUILD_ARGS}"
fi