From 59ae38d053435f37093f2fab5f69face0cf498c6 Mon Sep 17 00:00:00 2001 From: Ensar Sarajcic Date: Mon, 8 Oct 2018 20:35:41 +0000 Subject: [PATCH] Add test environment deployment for pipelines --- bitbucket-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 3c5759f..e7f984c 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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