File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed
Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ include $(ROOT_DIR_RELATIVE)/common.mk
2121
2222# Go
2323GO_VERSION ?=1.21.5
24- GO_CONTAINER_IMAGE ?= public.ecr.aws/docker/library/ golang:$(GO_VERSION )
24+ GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION )
2525
2626# Directories.
2727ARTIFACTS ?= $(REPO_ROOT ) /_artifacts
@@ -607,18 +607,17 @@ release-binaries: ## Builds the binaries to publish with a release
607607 RELEASE_BINARY=./cmd/clusterawsadm GOOS=windows GOARCH=arm64 EXT=.exe $(MAKE ) release-binary
608608
609609.PHONY : release-binary
610- release-binary : $(RELEASE_DIR ) versions.mk build-toolchain # # Release binary
610+ release-binary : $(RELEASE_DIR ) versions.mk # # Release binary
611611 docker run \
612612 --rm \
613613 -e CGO_ENABLED=0 \
614614 -e GOOS=$(GOOS ) \
615615 -e GOARCH=$(GOARCH ) \
616- --mount=source=gocache,target=/go/pkg/mod \
617- --mount=source=gocache,target=/root/.cache/go-build \
616+ -e GOCACHE=/tmp/ \
617+ --user $$( id -u ) : $$( id -g ) \
618618 -v " $$ (pwd):/workspace$( DOCKER_VOL_OPTS) " \
619619 -w /workspace \
620- $(TOOLCHAIN_IMAGE ) \
621- git config --global --add safe.directory /workspace; \
620+ $(GO_CONTAINER_IMAGE ) \
622621 go build -ldflags ' $(LDFLAGS) -extldflags "-static"' \
623622 -o $(RELEASE_DIR ) /$(notdir $(RELEASE_BINARY ) ) -$(GOOS ) -$(GOARCH )$(EXT ) $(RELEASE_BINARY )
624623
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ timeout: 3000s
33options :
44 substitution_option : ALLOW_LOOSE
55steps :
6- - name : ' gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20220609-2e4c91eb7e '
6+ - name : ' gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-29014a6e3a '
77 entrypoint : make
88 env :
99 - DOCKER_CLI_EXPERIMENTAL=enabled
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ timeout: 3000s
33options :
44 substitution_option : ALLOW_LOOSE
55steps :
6- - name : ' gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20220609-2e4c91eb7e '
6+ - name : ' gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20240210-29014a6e3a '
77 entrypoint : make
88 env :
99 - DOCKER_CLI_EXPERIMENTAL=enabled
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api-provider-aws/v2
22
33go 1.21
44
5+ toolchain go1.21.5
6+
57replace (
68 // kube-openapi should match the version imported by CAPI.
79 k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api-provider-aws/hack/tools
22
33go 1.21
44
5+ toolchain go1.21.5
6+
57// kube-openapi should match the version imported by kustomize.
68replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f
79
You can’t perform that action at this time.
0 commit comments