File tree 1 file changed +9
-5
lines changed 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ ARG COSIGN_EXPERIMENTAL=0
19
19
ARG CGO_ENABLED= 0
20
20
ARG ELEMENTAL_IMAGE= quay.io/costoolkit/elemental-cli:v0.0.15-8a78e6b
21
21
ARG GOLINT_VERSION= 1.47.3
22
-
22
+ ARG GO_VERSION = 1.18
23
23
24
24
all :
25
25
BUILD +docker
@@ -32,7 +32,8 @@ all-arm:
32
32
BUILD +arm-image
33
33
34
34
go-deps :
35
- FROM golang
35
+ ARG GO_VERSION
36
+ FROM golang:$GO_VERSION
36
37
WORKDIR /build
37
38
COPY go.mod go.sum ./
38
39
RUN go mod download
83
84
BUILD +build-c3os-agent-provider
84
85
85
86
dist :
86
- FROM golang
87
+ ARG GO_VERSION
88
+ FROM golang:$GO_VERSION
87
89
RUN echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' | tee /etc/apt/sources.list.d/goreleaser.list
88
90
RUN apt update
89
91
RUN apt install -y goreleaser
93
95
SAVE ARTIFACT /build/dist/* AS LOCAL dist/
94
96
95
97
lint :
96
- FROM golang:alpine
98
+ ARG GO_VERSION
99
+ FROM golang:$GO_VERSION
97
100
ARG GOLINT_VERSION
98
101
RUN wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v$GOLINT_VERSION
99
102
WORKDIR /build
@@ -343,7 +346,8 @@ trivy-scan:
343
346
RUN /trivy filesystem --severity $SEVERITY --exit-code 1 --no-progress /
344
347
345
348
linux-bench :
346
- FROM golang
349
+ ARG GO_VERSION
350
+ FROM golang:$GO_VERSION
347
351
GIT CLONE https://github.com/aquasecurity/linux-bench /linux-bench-src
348
352
RUN cd /linux-bench-src && CGO_ENABLED= 0 go build -o linux-bench . && mv linux-bench /
349
353
SAVE ARTIFACT /linux-bench /linux-bench
You can’t perform that action at this time.
0 commit comments