forked from kubernetes/cloud-provider-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
22 lines (22 loc) · 768 Bytes
/
Copy pathcloudbuild.yaml
File metadata and controls
22 lines (22 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# See https://cloud.google.com/cloud-build/docs/build-config
options:
dynamic_substitutions: true
substitution_option: ALLOW_LOOSE
machineType: 'N1_HIGHCPU_8'
steps:
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
entrypoint: /buildx-entrypoint
args:
- build
- --tag=gcr.io/$PROJECT_ID/cloud-controller-manager:$_SHORT_TAG
- --tag=gcr.io/$PROJECT_ID/cloud-controller-manager:latest
- --build-arg=VERSION=$_SHORT_TAG
- --output=type=registry
- --platform=linux/amd64,linux/arm64
- .
substitutions:
_GIT_TAG: 'v99999999-v12345'
# Remove date prefix (first 10 characters) to create valid semver version:
# v20220510-v1.24.0-alpha.0-15-g09bd268 => v1.24.0-alpha.0-15-g09bd268
_SHORT_TAG: '${_GIT_TAG:10}'
timeout: 1200s