From 198c1e05a4affa60dc7d37b1089246f06953e936 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 8d469911316e..4eb9d0c8c1df 100644 --- a/Makefile +++ b/Makefile @@ -1058,7 +1058,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 66e3418801f4..7168bfed9d4e 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:v20230522-312425ae46' 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 b6d95e002d544399c368c9d219648267619e305c 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 7168bfed9d4e..1ef17030d2e2 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:v20230522-312425ae46' 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