From e4805d1e0f64d066095ebb04c1d89825ef72efc5 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 d0b1f071520e..88359e741fc5 100644 --- a/Makefile +++ b/Makefile @@ -1034,7 +1034,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 0c346c7e681e7e80915c14d3bcca30a935fa9d08 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