Only allow commandine deployment to alpha

This commit is contained in:
jianglai 2019-06-14 15:31:15 -04:00 committed by Lai Jiang
parent cacb5b0a64
commit 94e8c0fb99

View file

@ -74,6 +74,9 @@ ext.projectRootDir = "${rootDir}"
task deploy {
group = 'deployment'
description = 'Deploys all services to App Engine.'
if (rootProject.findProperty("environment") != 'alpha') {
throw new GradleException("Can only deploy to alpha.");
}
}
task stage {