File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1414
1515# Build the manager binary
1616ARG GO_VERSION
17- FROM golang:${GO_VERSION} AS builder
17+ FROM golang:${GO_VERSION:-1.24.9 } AS builder
1818WORKDIR /workspace
1919
2020# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy
@@ -28,7 +28,7 @@ COPY go.sum go.sum
2828# Cache deps before building and copying source so that we don't need to re-download as much
2929# and so that source changes don't invalidate our downloaded layer
3030RUN --mount=type=cache,target=/go/pkg/mod \
31- go mod download
31+ go mod download
3232
3333# Copy the sources
3434COPY ./ ./
@@ -40,10 +40,10 @@ ARG ldflags
4040
4141# Do not force rebuild of up-to-date packages (do not use -a) and use the compiler cache folder
4242RUN --mount=type=cache,target=/root/.cache/go-build \
43- --mount=type=cache,target=/go/pkg/mod \
44- CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
45- go build -ldflags "${ldflags} -extldflags '-static'" \
46- -o manager ${package}
43+ --mount=type=cache,target=/go/pkg/mod \
44+ CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
45+ go build -ldflags "${ldflags} -extldflags '-static'" \
46+ -o manager ${package}
4747
4848# Production image
4949FROM gcr.io/distroless/static:nonroot
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ unexport GOPATH
2727TRACE ?= 0
2828
2929# Go
30- GO_VERSION ?= 1.23.12
30+ GO_VERSION ?= 1.24.9
3131
3232# Directories.
3333ARTIFACTS ?= $(REPO_ROOT ) /_artifacts
You can’t perform that action at this time.
0 commit comments