File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- env :
2
- - GO111MODULE=on
3
1
before :
4
2
hooks :
5
3
- make clean
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ export DOCKER_BUILDKIT = 1
12
12
13
13
.PHONY : nginx-prometheus-exporter
14
14
nginx-prometheus-exporter :
15
- GO111MODULE=on CGO_ENABLED=0 go build -trimpath -ldflags " -s -w -X main.version=$( VERSION) -X main.commit=$( GIT_COMMIT) -X main.date=$( DATE) " -o nginx-prometheus-exporter
15
+ CGO_ENABLED=0 go build -trimpath -ldflags " -s -w -X main.version=$( VERSION) -X main.commit=$( GIT_COMMIT) -X main.date=$( DATE) " -o nginx-prometheus-exporter
16
16
17
17
.PHONY : lint
18
18
lint :
19
19
go run github.com/golangci/golangci-lint/cmd/golangci-lint run
20
20
21
21
.PHONY : test
22
22
test :
23
- GO111MODULE=on go test ./...
23
+ go test ./...
24
24
25
25
.PHONY : container
26
26
container :
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN go mod download
12
12
COPY *.go ./
13
13
COPY collector ./collector
14
14
COPY client ./client
15
- RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${GIT_COMMIT} -X main.date=${DATE}" -o nginx-prometheus-exporter .
15
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build -trimpath -a -ldflags "-s -w -X main.version=${VERSION} -X main.commit=${GIT_COMMIT} -X main.date=${DATE}" -o nginx-prometheus-exporter .
16
16
17
17
18
18
FROM scratch as intermediate
You can’t perform that action at this time.
0 commit comments