Skip to content

Commit

Permalink
Merge pull request #374 from hakman/fix-cloudbuild
Browse files Browse the repository at this point in the history
Update cloud build config for v1.21
  • Loading branch information
k8s-ci-robot authored May 16, 2022
2 parents 0712fe8 + e0f5c77 commit d941df3
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
images:
- 'gcr.io/$PROJECT_ID/cloud-controller-manager:$_GIT_TAG'
- 'gcr.io/$PROJECT_ID/cloud-controller-manager:latest'
# 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/cloud-builders/docker
- name: gcr.io/k8s-testimages/gcb-docker-gcloud
entrypoint: /buildx-entrypoint
args:
- build
- --tag=gcr.io/$PROJECT_ID/cloud-controller-manager:$_GIT_TAG
- --tag=gcr.io/$PROJECT_ID/cloud-controller-manager:$_SHORT_TAG
- --tag=gcr.io/$PROJECT_ID/cloud-controller-manager:latest
- --build-arg=VERSION=$_GIT_TAG
- --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

0 comments on commit d941df3

Please sign in to comment.