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
21
21
22
22
# Go
23
23
GO_VERSION ?=1.21.5
24
- GO_CONTAINER_IMAGE ?= public.ecr.aws/docker/library/ golang:$(GO_VERSION )
24
+ GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION )
25
25
26
26
# Directories.
27
27
ARTIFACTS ?= $(REPO_ROOT ) /_artifacts
@@ -607,18 +607,17 @@ release-binaries: ## Builds the binaries to publish with a release
607
607
RELEASE_BINARY=./cmd/clusterawsadm GOOS=windows GOARCH=arm64 EXT=.exe $(MAKE ) release-binary
608
608
609
609
.PHONY : release-binary
610
- release-binary : $(RELEASE_DIR ) versions.mk build-toolchain # # Release binary
610
+ release-binary : $(RELEASE_DIR ) versions.mk # # Release binary
611
611
docker run \
612
612
--rm \
613
613
-e CGO_ENABLED=0 \
614
614
-e GOOS=$(GOOS ) \
615
615
-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 ) \
618
618
-v " $$ (pwd):/workspace$( DOCKER_VOL_OPTS) " \
619
619
-w /workspace \
620
- $(TOOLCHAIN_IMAGE ) \
621
- git config --global --add safe.directory /workspace; \
620
+ $(GO_CONTAINER_IMAGE ) \
622
621
go build -ldflags ' $(LDFLAGS) -extldflags "-static"' \
623
622
-o $(RELEASE_DIR ) /$(notdir $(RELEASE_BINARY ) ) -$(GOOS ) -$(GOARCH )$(EXT ) $(RELEASE_BINARY )
624
623
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ timeout: 3000s
3
3
options :
4
4
substitution_option : ALLOW_LOOSE
5
5
steps :
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 '
7
7
entrypoint : make
8
8
env :
9
9
- DOCKER_CLI_EXPERIMENTAL=enabled
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ timeout: 3000s
3
3
options :
4
4
substitution_option : ALLOW_LOOSE
5
5
steps :
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 '
7
7
entrypoint : make
8
8
env :
9
9
- 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
2
2
3
3
go 1.21
4
4
5
+ toolchain go1.21.5
6
+
5
7
replace (
6
8
// kube-openapi should match the version imported by CAPI.
7
9
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
2
2
3
3
go 1.21
4
4
5
+ toolchain go1.21.5
6
+
5
7
// kube-openapi should match the version imported by kustomize.
6
8
replace k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f
7
9
You can’t perform that action at this time.
0 commit comments