Skip to content

Commit 505ab7f

Browse files
authored
Merge pull request kubernetes-sigs#2786 from Nordix/lentzi90/release-0.12-go
🌱 Bump go to 1.24.9
2 parents ef7969c + 4e1934a commit 505ab7f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Build the manager binary
1616
ARG GO_VERSION
17-
FROM golang:${GO_VERSION} AS builder
17+
FROM golang:${GO_VERSION:-1.24.9} AS builder
1818
WORKDIR /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
3030
RUN --mount=type=cache,target=/go/pkg/mod \
31-
go mod download
31+
go mod download
3232

3333
# Copy the sources
3434
COPY ./ ./
@@ -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
4242
RUN --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
4949
FROM gcr.io/distroless/static:nonroot

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ unexport GOPATH
2727
TRACE ?= 0
2828

2929
# Go
30-
GO_VERSION ?= 1.23.12
30+
GO_VERSION ?= 1.24.9
3131

3232
# Directories.
3333
ARTIFACTS ?= $(REPO_ROOT)/_artifacts

0 commit comments

Comments
 (0)