From 47d72bb49ecff6ce811f0cd2e1168b2f99e39544 Mon Sep 17 00:00:00 2001 From: cahillsf Date: Mon, 11 Sep 2023 08:59:32 -0400 Subject: [PATCH 1/2] improve release-staging build revert to second variant --- Makefile | 4 +++- cloudbuild.yaml | 7 +++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4e33e067f102..e588e23db957 100644 --- a/Makefile +++ b/Makefile @@ -979,7 +979,9 @@ release-binary: $(RELEASE_DIR) .PHONY: release-staging release-staging: ## Build and push container images to the staging bucket - REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag + REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all + REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-push-all + REGISTRY=$(STAGING_REGISTRY) $(MAKE) release-alias-tag .PHONY: release-staging-nightly release-staging-nightly: ## Tag and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121 diff --git a/cloudbuild.yaml b/cloudbuild.yaml index ccbbdee4b278..78f3be0e4eb5 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -3,7 +3,7 @@ timeout: 2700s options: substitution_option: ALLOW_LOOSE - machineType: 'E2_HIGHCPU_8' + machineType: 'E2_HIGHCPU_32' steps: - name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20221007-ad65926f6b' entrypoint: make @@ -12,10 +12,9 @@ steps: - TAG=$_GIT_TAG - PULL_BASE_REF=$_PULL_BASE_REF - DOCKER_BUILDKIT=1 - args: - - release-staging + args: ['release-staging', '-j', '32', '-O'] substitutions: # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and # can be used as a substitution _GIT_TAG: '12345' - _PULL_BASE_REF: 'dev' + _PULL_BASE_REF: 'dev' \ No newline at end of file From f8d91e8517426aa95a72cc2267d632cba8cbaf27 Mon Sep 17 00:00:00 2001 From: cahillsf Date: Mon, 9 Oct 2023 20:54:54 -0400 Subject: [PATCH 2/2] update to smaller machineType --- cloudbuild.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 78f3be0e4eb5..62301d08b9ec 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -3,7 +3,7 @@ timeout: 2700s options: substitution_option: ALLOW_LOOSE - machineType: 'E2_HIGHCPU_32' + machineType: 'E2_HIGHCPU_8' steps: - name: 'gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20221007-ad65926f6b' entrypoint: make @@ -12,7 +12,7 @@ steps: - TAG=$_GIT_TAG - PULL_BASE_REF=$_PULL_BASE_REF - DOCKER_BUILDKIT=1 - args: ['release-staging', '-j', '32', '-O'] + args: ['release-staging', '-j', '8', '-O'] substitutions: # _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and # can be used as a substitution