Skip to content

Commit a1adfe3

Browse files
committed
chore: use N1_HIGHCPU_8 for cloudbuild and update cloudbuild image
Currently we build linux/amd64, linux/arm64, windows/1809, windows/1903, windows/1909 and windows/2004 images with cloudbuild. This takes ~1h10m to complete. Use larger machine type N1_HIGHCPU_8 for cloudbuild jobs to speed up the build. Also, update the cloudbuild base image to a newer version. Note: This machine type is used across all kubernetes builds. Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent f1b077f commit a1adfe3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/cloudbuild.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ timeout: 5400s
88
# or any new substitutions added in the future.
99
options:
1010
substitution_option: ALLOW_LOOSE
11+
# this is the machine type used for kubernetes releases.
12+
# See https://cloud.google.com/build/docs/speeding-up-builds#using_custom_virtual_machine_sizes
13+
# job builds a multi-arch docker image for amd64,arm64 and windows 1809, 1903, 1909, 2004.
14+
machineType: 'N1_HIGHCPU_8'
1115
steps:
12-
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20200422-b25d964'
16+
- name: 'gcr.io/k8s-testimages/gcb-docker-gcloud:v20210722-085d930'
1317
entrypoint: bash
1418
dir: ./docker
1519
env:

0 commit comments

Comments
 (0)