File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ OS_OUTPUT_GOPATH ?= 1
13
13
14
14
export GOFLAGS
15
15
export TESTFLAGS
16
+ # If set to 1, create an isolated GOPATH inside _output using symlinks to avoid
17
+ # other packages being accidentally included. Defaults to on.
16
18
export OS_OUTPUT_GOPATH
19
+ # May be used to set additional arguments passed to the image build commands for
20
+ # mounting secrets specific to a build environment.
21
+ export OS_BUILD_IMAGE_ARGS
17
22
18
23
# Build code.
19
24
#
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if [[ -z "${oc}" ]]; then
24
24
fi
25
25
26
26
function build() {
27
- " ${oc} " ex dockerbuild $2 $1
27
+ eval " ' ${oc} '' ex dockerbuild $2 $1 ${OS_BUILD_IMAGE_ARGS :- } "
28
28
}
29
29
30
30
# Build the images
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ if [[ -z "${oc}" ]]; then
61
61
fi
62
62
63
63
function build() {
64
- " ${oc} " ex dockerbuild $2 $1
64
+ eval " ' ${oc} '' ex dockerbuild $2 $1 ${OS_BUILD_IMAGE_ARGS :- } "
65
65
}
66
66
67
67
# Create link to file if the FS supports hardlinks, otherwise copy the file
You can’t perform that action at this time.
0 commit comments