File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# Build the manager binary
16
- FROM golang:1.23.0 AS builder
16
+ ARG GO_VERSION
17
+ FROM golang:${GO_VERSION} as builder
17
18
WORKDIR /workspace
18
19
19
20
# Run this with docker build --build_arg goproxy=$(go env GOPROXY) to override the goproxy
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export GO111MODULE=on
24
24
unexport GOPATH
25
25
26
26
# Go
27
- GO_VERSION ?= 1.22.7
27
+ GO_VERSION ?= 1.23.0
28
28
29
29
# Directories.
30
30
ARTIFACTS ?= $(REPO_ROOT ) /_artifacts
@@ -330,7 +330,7 @@ generate-api-docs-%: $(GEN_CRD_API_REFERENCE_DOCS) FORCE
330
330
331
331
.PHONY : docker-build
332
332
docker-build : # # Build the docker image for controller-manager
333
- docker build -f Dockerfile --build-arg goproxy=$(GOPROXY ) --build-arg ARCH=$(ARCH ) --build-arg ldflags=" $( LDFLAGS) " . -t $(CONTROLLER_IMG_TAG )
333
+ docker build -f Dockerfile --build-arg GO_VERSION= $( GO_VERSION ) --build-arg goproxy=$(GOPROXY ) --build-arg ARCH=$(ARCH ) --build-arg ldflags=" $( LDFLAGS) " . -t $(CONTROLLER_IMG_TAG )
334
334
335
335
.PHONY : docker-push
336
336
docker-push : # # Push the docker image
You can’t perform that action at this time.
0 commit comments