Skip to content

Commit be6245e

Browse files
committed
[SECCOMP-31582] - export globally
1 parent 460e153 commit be6245e

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- checkout
4343
- setup_remote_docker
4444
- run: docker version
45-
- run: make build
46-
- run: make test
45+
- run: CGO_ENABLED=1 make build
46+
- run: GOEXPERIMENT=boringcrypto make test
4747

4848
workflows:
4949
version: 2

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ENV CGO_ENABLED=1
1313
ENV GOEXPERIMENT=boringcrypto
1414

1515
RUN go mod tidy
16-
RUN CGO_ENABLED=1 GOEXPERIMENT=boringcrypto make build
16+
RUN make build
1717
RUN cp postgres_exporter /bin/postgres_exporter
1818

1919
FROM scratch AS scratch

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Ensure that 'all' is the default target otherwise it will be the first target from Makefile.common.
22
all::
33

4-
export CGO_ENABLE := 1
5-
export GOEXPERIMENT := boringcrypto
64
# Needs to be defined before including Makefile.common to auto-generate targets
75
DOCKER_ARCHS ?= amd64 armv7 arm64 ppc64le
86
DOCKER_REPO ?= prometheuscommunity

0 commit comments

Comments
 (0)