Skip to content

Commit 12d691a

Browse files
committed
fix: changes to release process
Signed-off-by: Richard Case <[email protected]>
1 parent d6dae05 commit 12d691a

File tree

8 files changed

+15
-12
lines changed

8 files changed

+15
-12
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ include $(ROOT_DIR_RELATIVE)/common.mk
2020
# https://suva.sh/posts/well-documented-makefiles
2121

2222
# Go
23-
GO_VERSION ?=1.21.7
24-
GO_CONTAINER_IMAGE ?= public.ecr.aws/docker/library/golang:$(GO_VERSION)
23+
GO_VERSION ?=1.21.5
24+
GO_CONTAINER_IMAGE ?= golang:$(GO_VERSION)
2525

2626
# Directories.
2727
ARTIFACTS ?= $(REPO_ROOT)/_artifacts
@@ -610,12 +610,11 @@ release-binary: $(RELEASE_DIR) versions.mk build-toolchain ## Release binary
610610
-e CGO_ENABLED=0 \
611611
-e GOOS=$(GOOS) \
612612
-e GOARCH=$(GOARCH) \
613-
--mount=source=gocache,target=/go/pkg/mod \
614-
--mount=source=gocache,target=/root/.cache/go-build \
613+
-e GOCACHE=/tmp/ \
614+
--user $$(id -u):$$(id -g) \
615615
-v "$$(pwd):/workspace$(DOCKER_VOL_OPTS)" \
616616
-w /workspace \
617-
$(TOOLCHAIN_IMAGE) \
618-
git config --global --add safe.directory /workspace; \
617+
$(GO_CONTAINER_IMAGE) \
619618
go build -ldflags '$(LDFLAGS) -extldflags "-static"' \
620619
-o $(RELEASE_DIR)/$(notdir $(RELEASE_BINARY))-$(GOOS)-$(GOARCH)$(EXT) $(RELEASE_BINARY)
621620

cloudbuild-nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ timeout: 3000s
33
options:
44
substitution_option: ALLOW_LOOSE
55
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'
77
entrypoint: make
88
env:
99
- DOCKER_CLI_EXPERIMENTAL=enabled

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ timeout: 3000s
33
options:
44
substitution_option: ALLOW_LOOSE
55
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'
77
entrypoint: make
88
env:
99
- DOCKER_CLI_EXPERIMENTAL=enabled

docs/triage-party/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717

18-
FROM golang:1.21.7 as builder
18+
FROM golang:1.21.5 as builder
1919

2020
RUN go get github.com/google/triage-party/cmd/server
2121
RUN go install github.com/google/triage-party/cmd/server@latest

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api-provider-aws/v2
22

33
go 1.21
44

5+
toolchain go1.21.5
6+
57
replace sigs.k8s.io/cluster-api => sigs.k8s.io/cluster-api v1.5.3
68

79
require (

hack/ensure-go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ EOF
2929
fi
3030

3131
local go_version
32-
IFS=" " read -ra go_version <<< "$(go version)"
32+
IFS=" " read -ra go_version <<<"$(go version)"
3333
local minimum_go_version
34-
minimum_go_version=go1.21.7
34+
minimum_go_version=go1.21.5
3535
if [[ "${minimum_go_version}" != $(echo -e "${minimum_go_version}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
3636
cat <<EOF
3737
Detected go version: ${go_version[*]}.

hack/tools/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module sigs.k8s.io/cluster-api-provider-aws/hack/tools
22

33
go 1.21
44

5+
toolchain go1.21.5
6+
57
require (
68
github.com/a8m/envsubst v1.4.2
79
github.com/ahmetb/gen-crd-api-reference-docs v0.3.0

netlify.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
publish = "docs/book/book"
55

66
[build.environment]
7-
GO_VERSION = "1.21.7"
7+
GO_VERSION = "1.21.5"
88

99
# Standard Netlify redirects
1010
[[redirects]]

0 commit comments

Comments
 (0)