Upload Cloud Build schema-deploy config to GCS (#435)

* Upload Cloud Build schema-deploy config to GCS

Forgot to upload cloudbuild-schema-deploy.yaml to GCS.
This commit is contained in:
Weimin Yu 2020-01-09 15:04:10 -05:00 committed by GitHub
parent d3ff53466e
commit 36cfd31b80
2 changed files with 5 additions and 0 deletions

View file

@ -102,6 +102,7 @@ artifacts:
- 'release/cloudbuild-tag.yaml'
- 'release/cloudbuild-sync.yaml'
- 'release/cloudbuild-deploy-*.yaml'
- 'release/cloudbuild-schema-deploy-*.yaml'
timeout: 3600s
options:

View file

@ -129,6 +129,10 @@ steps:
sed -i s/schema_deployer:latest/schema_deployer@$schema_deployer_digest/g \
release/cloudbuild-schema-deploy.yaml
sed -i s/'$${TAG_NAME}'/${TAG_NAME}/g release/cloudbuild-schema-deploy.yaml
for environment in alpha crash sandbox production; do
sed s/'$${_ENV}'/${environment}/g release/cloudbuild-schema-deploy.yaml \
> release/cloudbuild-schema-deploy-${environment}.yaml
done
# Upload the gradle binary to GCS if it does not exist and point URL in gradle wrapper to it.
- name: 'gcr.io/cloud-builders/gsutil'
entrypoint: /bin/bash