File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1091,23 +1091,23 @@ function os::build::environment::create() {
1091
1091
set -o errexit
1092
1092
local release_image=" ${OS_BUILD_ENV_IMAGE} "
1093
1093
local additional_context=" ${OS_BUILD_ENV_DOCKER_ARGS:- } "
1094
- if [[ -z " ${additional_context} " && " ${OS_BUILD_ENV_USE_DOCKER:- y} " == " y" ]]; then
1095
- additional_context=" --privileged -v /var/run/docker.sock:/var/run/docker.sock"
1094
+ if [[ " ${OS_BUILD_ENV_USE_DOCKER:- y} " == " y" ]]; then
1095
+ additional_context+ =" --privileged -v /var/run/docker.sock:/var/run/docker.sock"
1096
1096
1097
1097
if [[ " ${OS_BUILD_ENV_LOCAL_DOCKER:- n} " == " y" ]]; then
1098
1098
# if OS_BUILD_ENV_LOCAL_DOCKER==y, add the local OS_ROOT as the bind mount to the working dir
1099
1099
# and set the running user to the current user
1100
1100
local workingdir
1101
1101
workingdir=$( os::build::environment::release::workingdir )
1102
- additional_context= " ${additional_context} -v ${OS_ROOT} :${workingdir} -u $( id -u) "
1102
+ additional_context+= " -v ${OS_ROOT} :${workingdir} -u $( id -u) "
1103
1103
elif [[ -n " ${OS_BUILD_ENV_REUSE_VOLUME:- } " ]]; then
1104
1104
# if OS_BUILD_ENV_REUSE_VOLUME is set, create a docker volume to store the working output so
1105
1105
# successive iterations can reuse shared code.
1106
1106
local workingdir
1107
1107
workingdir=$( os::build::environment::release::workingdir )
1108
1108
name=" $( echo " ${OS_BUILD_ENV_REUSE_VOLUME} " | tr ' [:upper:]' ' [:lower:]' ) "
1109
1109
docker volume create --name " ${name} " > /dev/null
1110
- additional_context= " ${additional_context} -v ${name} :${workingdir} "
1110
+ additional_context+= " -v ${name} :${workingdir} "
1111
1111
fi
1112
1112
fi
1113
1113
You can’t perform that action at this time.
0 commit comments