Fix deploying to alpha from workstation (#198)

appengineDeployAll requires appengine.deploy.version to be set
otherwiese the deployment would fail.
This commit is contained in:
Shicong Huang 2019-07-26 14:37:49 -04:00 committed by GitHub
parent 2467c07d07
commit 32677ef056

View file

@ -75,6 +75,12 @@ if (project.path == ":services:default") {
appengine { appengine {
deploy { deploy {
// appengineDeployAll task requires the version to be set. So,
// this config lets gcloud select a version name when deploying
// to alpha from our workstation.
if (environment != 'production' && environment != 'sandbox') {
version = 'GCLOUD_CONFIG'
}
projectId = gcpProject projectId = gcpProject
} }
} }