Add test environment deployment for pipelines

master
Ensar Sarajcic 2018-10-08 20:35:41 +00:00
parent a98c820749
commit 59ae38d053
1 changed files with 9 additions and 0 deletions

View File

@ -16,4 +16,13 @@ pipelines:
# trigger: manual # uncomment to have a manual step
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD
develop:
- step:
# set HEROKU_API_KEY and HEROKU_APP_NAME environment variables
# set clone `depth: full' as described here: https://confluence.atlassian.com/x/Y9-5Mw
name: Deploy to Heroku test
deployment: test # set to test, staging or production
# trigger: manual # uncomment to have a manual step
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_TEST.git HEAD