File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function build_binaries() {
5454 bin_name=" $( basename ${build_dir} ) "
5555 bin=" ${bin_name} _${VERSION} _${OS} -${ARCH} "
5656 echo " Building ${OUTPUT_DIR} /${bin} "
57- env GOOS=" ${OS} " GOARCH=" ${ARCH} " go build -ldflags=" -X 'github.com/GoogleCloudPlatform/healthcare-data-protection-suite/cmd.Version=${VERSION} ' -X 'github.com/GoogleCloudPlatform/healthcare-data-protection-suite/cmd.BuildTime=${BUILD_TIME} '" -o " ${OUTPUT_DIR} /${bin} " " ${build_dir} "
57+ env CGO_ENABLED=0 GOOS=" ${OS} " GOARCH=" ${ARCH} " go build -ldflags=" -extldflags '-static' -X 'github.com/GoogleCloudPlatform/healthcare-data-protection-suite/cmd.Version=${VERSION} ' -X 'github.com/GoogleCloudPlatform/healthcare-data-protection-suite/cmd.BuildTime=${BUILD_TIME} '" -o " ${OUTPUT_DIR} /${bin} " " ${build_dir} "
5858 done
5959 done
6060 done
You can’t perform that action at this time.
0 commit comments