steps: | |
- name: 'gcr.io/cloud-builders/gcloud' | |
entrypoint: 'bash' | |
args: | |
- '-c' | |
- | | |
for d in src/cmd/*/; do | |
config="${d}cloudbuild.yaml" | |
if [[ ! -f "${config}" ]]; then | |
continue | |
fi | |
echo "Building $d ... " | |
( | |
gcloud builds submit --config=${config} --substitutions=_OUTPUT_PROJECT=${_OUTPUT_PROJECT},TAG_NAME=${COMMIT_SHA} | |
) & | |
done | |
wait | |
timeout: 3600s |