File tree Expand file tree Collapse file tree
cloudbuild/gpu-image-builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# Builds the custom Packer Cloud Build builder if it doesn't exist.
44# https://docs.cloud.google.com/build/docs/building/build-vm-images-with-packer
55
6- set -euo pipefail
6+ set -xeuo pipefail
77
88PROJECT_ID=" ${1} "
99PACKER_BUILDER_IMAGE=" gcr.io/${PROJECT_ID} /packer"
1414 echo " Packer builder image not found. Building it now..."
1515 git clone https://github.com/GoogleCloudPlatform/cloud-builders-community.git --depth=1
1616 cd cloud-builders-community/packer
17- gcloud builds submit --project=" ${PROJECT_ID} " .
17+ gcloud builds submit --project=" ${PROJECT_ID} " --service-account=projects/stackdriver-test-143416/serviceAccounts/build-and-test@stackdriver-test-143416.iam.gserviceaccount.com .
1818 cd -
1919 echo " Packer builder image built."
2020fi
You can’t perform that action at this time.
0 commit comments