File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG GOARCH="amd64"
77ARG SHA1="[no-sha]"
88ARG TAG="[no-tag]"
99
10- RUN BUILD_DATE=$(date +%F-%T) CGO_ENABLED=0 GOOS=linux GOARCH=$GOARCH go build -o /redis_exporter \
10+ RUN BUILD_DATE=$(date +%F-%T) CGO_ENABLED=1 GOEXPERIMENT=boringcrypto GOOS=linux GOARCH=$GOARCH go build -o /redis_exporter \
1111 -ldflags "-s -w -extldflags \" -static\" -X main.BuildVersion=$TAG -X main.BuildCommitSha=$SHA1 -X main.BuildDate=$BUILD_DATE" .
1212
1313RUN [ $GOARCH = "amd64" ] && /redis_exporter -version || ls -la /redis_exporter
Original file line number Diff line number Diff line change @@ -67,15 +67,16 @@ upload-coverage:
6767
6868
6969BUILD_DT: =$(shell date +% F-% T)
70- GO_LDFLAGS: ="-s -w -extldflags \"-static\" -X main.BuildVersion=${DRONE_TAG} -X main.BuildCommitSha=${DRONE_COMMIT_SHA} -X main.BuildDate=$(BUILD_DT ) "
70+ GO_LDFLAGS: ="-s -w -extldflags \"-static\" -X main.BuildVersion=${DRONE_TAG} -X main.BuildCommitSha=${DRONE_COMMIT_SHA} -X main.BuildDate=$(BUILD_DT ) "
7171
7272.PHONE : build-binaries
7373build-binaries :
7474 go install github.com/oliver006/gox@master
7575
7676 rm -rf .build | true
7777
78- export CGO_ENABLED=0 ; \
78+ export CGO_ENABLED=1 ; \
79+ export GOEXPERIMENT=boringcrypto ; \
7980 gox -os="linux windows freebsd netbsd openbsd" -arch="amd64 386" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
8081 gox -os="darwin solaris illumos" -arch="amd64" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
8182 gox -os="darwin" -arch="arm64" -verbose -rebuild -ldflags $(GO_LDFLAGS) -output ".build/redis_exporter-${DRONE_TAG}.{{.OS}}-{{.Arch}}/{{.Dir}}" && \
Original file line number Diff line number Diff line change 99 "strconv"
1010 "time"
1111
12+ _ "crypto/tls/fipsonly"
13+
1214 "github.com/prometheus/client_golang/prometheus"
1315 log "github.com/sirupsen/logrus"
1416
You can’t perform that action at this time.
0 commit comments