Skip to content

Commit 11dfbdd

Browse files
authored
Merge pull request kubernetes-sigs#9536 from cahillsf/improve-release-staging-build-speed
🌱 Improve release staging build speed
2 parents 5107016 + b6d95e0 commit 11dfbdd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,9 @@ release-binary: $(RELEASE_DIR)
10581058

10591059
.PHONY: release-staging
10601060
release-staging: ## Build and push container images to the staging bucket
1061-
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all docker-push-all release-alias-tag
1061+
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-build-all
1062+
REGISTRY=$(STAGING_REGISTRY) $(MAKE) docker-push-all
1063+
REGISTRY=$(STAGING_REGISTRY) $(MAKE) release-alias-tag
10621064

10631065
.PHONY: release-staging-nightly
10641066
release-staging-nightly: ## Tag and push container images to the staging bucket. Example image tag: cluster-api-controller:nightly_main_20210121

cloudbuild.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ steps:
1212
- TAG=$_GIT_TAG
1313
- PULL_BASE_REF=$_PULL_BASE_REF
1414
- DOCKER_BUILDKIT=1
15-
args:
16-
- release-staging
15+
args: ['release-staging', '-j', '8', '-O']
1716
substitutions:
1817
# _GIT_TAG will be filled with a git-based tag for the image, of the form vYYYYMMDD-hash, and
1918
# can be used as a substitution
2019
_GIT_TAG: '12345'
21-
_PULL_BASE_REF: 'dev'
20+
_PULL_BASE_REF: 'dev'

0 commit comments

Comments
 (0)