File tree 4 files changed +3
-2
lines changed
4 files changed +3
-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,7 @@ 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
+ ENV GOROOT /usr/local/go
14
15
# don't place it into $GOPATH/bin because Drone mounts $GOPATH as volume
15
16
COPY --from=builder /golangci/golangci-lint /usr/bin/
16
17
CMD ["golangci-lint" ]
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ 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
+ ENV GOROOT /usr/local/go
19
20
# gcc is required to support cgo;
20
21
# git and mercurial are needed most times for go get`, etc.
21
22
# See https://github.com/docker-library/golang/issues/80
You can’t perform that action at this time.
0 commit comments