File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - name : Set up Go
3131 uses : actions/setup-go@v4
3232 with :
33- go-version : ' 1.19 '
33+ go-version : ' 1.20 '
3434 - name : Run GoReleaser
3535 uses : goreleaser/goreleaser-action@v4
3636 with :
Original file line number Diff line number Diff line change 1- FROM --platform=${BUILDPLATFORM} golang:bullseye as builder
2-
3- WORKDIR /build
4- COPY . .
5- ENV CGO_ENABLED=0
6- ARG TARGETOS TARGETARCH
7- RUN --mount=type=cache,target=/go/pkg/mod \
8- --mount=type=cache,target=/root/.cache/go-build \
9- GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o gcp-auditor .
10-
111FROM alpine:3.17
2+
123RUN apk add --no-cache git ca-certificates \
134 && rm -rf /var/cache/apk/* && \
145 update-ca-certificates
15- COPY --from=builder /build/gcp-auditor /usr/bin/gcp-auditor
6+ WORKDIR /usr/bin/
7+ COPY gcp-auditor .
168ENTRYPOINT ["/usr/bin/gcp-auditor" ]
You can’t perform that action at this time.
0 commit comments