From 6bd709b8c45babdcb0c24d92ff0e6c63dde6a290 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 31 Jan 2019 11:04:55 +0100 Subject: [PATCH] Add separate deploy pipeline --- bitbucket-pipelines.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 79f2604b..09b82610 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -30,6 +30,10 @@ aliases: - export USE_AWS=False - pipenv install --dev --system - ./server/run_unittests_coverage.sh +- &deploy-prod + name: Heroku deploy skillbox-prod + script: + - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-prod.git HEAD:master pipelines: default: @@ -38,10 +42,6 @@ pipelines: branches: master: - step: *unittest-python - - step: - name: Heroku deploy skillbox-prod - script: - - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-prod.git HEAD:master develop: - step: *unittest-python @@ -50,3 +50,8 @@ pipelines: script: - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master + deployment: + prod: + - step: *unittest-python + - step: *deploy-prod +