File tree 4 files changed +5
-2
lines changed
4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
go.sum linguist-generated
2
- Dockerfile. * linguist-language =Dockerfile
Original file line number Diff line number Diff line change 37
37
matrix :
38
38
target :
39
39
- Dockerfile : build/Dockerfile
40
- - Dockerfile : build/Dockerfile. alpine
40
+ - Dockerfile : build/alpine.Dockerfile
41
41
steps :
42
42
- uses : actions/checkout@v3
43
43
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X
11
11
12
12
# stage 2
13
13
FROM golang:1.19
14
+ # related to https://github.com/golangci/golangci-lint/issues/3107
15
+ ENV GOROOT /usr/local/go
14
16
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
15
17
COPY --from=builder /golangci/golangci-lint /usr/bin/
16
18
CMD ["golangci-lint" ]
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ RUN CGO_ENABLED=0 go build -trimpath -ldflags "-s -w -X main.version=$VERSION -X
16
16
17
17
# stage 2
18
18
FROM golang:1.19-alpine
19
+ # related to https://github.com/golangci/golangci-lint/issues/3107
20
+ ENV GOROOT /usr/local/go
19
21
# gcc is required to support cgo;
20
22
# git and mercurial are needed most times for go get`, etc.
21
23
# See https://github.com/docker-library/golang/issues/80
You can’t perform that action at this time.
0 commit comments