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 +