File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ before_install:
2626
2727- travis/decrypt.sh "$encrypted_361547783275_key" "$encrypted_361547783275_iv"
2828 keys/service-accounts.tar.enc /tmp/service-accounts.tar /tmp
29- - tar tvf /tmp/service-accounts.tar
3029- echo Branch is ${TRAVIS_BRANCH} and Tag is $TRAVIS_TAG
3130
3231# These directories will be cached on successful "script" builds, and restored,
@@ -221,6 +220,30 @@ deploy:
221220 all_branches : true
222221 condition : $TRAVIS_BRANCH == qp-sandbox-*
223222
223+ # STAGING: After code review and commits to master branch. Triggers when *ANY*
224+ # branch is tagged with qp-staging-*
225+ - provider : script
226+ script : $TRAVIS_BUILD_DIR/travis/deploy_app.sh mlab-staging
227+ /tmp/mlab-staging.json $TRAVIS_BUILD_DIR/appengine/queue_pusher
228+ skip_cleanup : true
229+ on :
230+ repo : m-lab/etl
231+ all_branches : true
232+ tag : true
233+ condition : $TRAVIS_TAG == qp-staging-*
234+
235+ # PROD: After code review and commits to master branch. Triggers when *ANY*
236+ # branch is tagged with qp-prod-*
237+ - provider : script
238+ script : $TRAVIS_BUILD_DIR/travis/deploy_app.sh mlab-oti
239+ /tmp/mlab-oti.json $TRAVIS_BUILD_DIR/appengine/queue_pusher
240+ skip_cleanup : true
241+ on :
242+ repo : m-lab/etl
243+ all_branches : true
244+ tag : true
245+ condition : $TRAVIS_TAG == qp-prod-*
246+
224247# NOTE: Cloud functions only support primitive IAM roles: Owner, Editor, Viewer.
225248# See: https://cloud.google.com/functions/docs/concepts/iam
226249# TODO(soltesz): Add deployment automation when fine-grained permissions are
You can’t perform that action at this time.
0 commit comments