generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 212
/
cloudbuild.yaml
33 lines (32 loc) · 1.01 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
timeout: 3600s
options:
substitution_option: ALLOW_LOOSE
# job builds a multi-arch docker image for amd64,arm,arm64 and s390x.
machineType: E2_HIGHCPU_32
steps:
- name: "gcr.io/k8s-staging-test-infra/gcb-docker-gcloud:v20231105-52c482caa0"
entrypoint: "bash"
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
- GIT_TAG=$_GIT_TAG
- BASE_REF=$_PULL_BASE_REF
- PUSH=true
- BUCKET=gs://k8s-staging-kwok
- STAGING=true
- STAGING_IMAGE_PREFIX=gcr.io/k8s-staging-kwok
- IMAGE_PREFIX=registry.k8s.io/kwok
- NUMBER_SUPPORTED_KUBE_RELEASES=6
- PRE_RELEASE=GA
args:
- -c
- |
gcloud auth configure-docker && \
docker buildx create --name img-builder --use && \
make release
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 will contain the ref that was pushed to trigger this build -
# a branch like 'main' or 'release-0.2', or a tag like 'v0.2'.
_PULL_BASE_REF: "main"