Add separate deploy pipeline

This commit is contained in:
Ramon Wenger 2019-01-31 11:04:55 +01:00
parent 5774715502
commit 6bd709b8c4
1 changed files with 9 additions and 4 deletions

View File

@ -30,6 +30,10 @@ aliases:
- export USE_AWS=False - export USE_AWS=False
- pipenv install --dev --system - pipenv install --dev --system
- ./server/run_unittests_coverage.sh - ./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: pipelines:
default: default:
@ -38,10 +42,6 @@ pipelines:
branches: branches:
master: master:
- step: *unittest-python - 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: develop:
- step: *unittest-python - step: *unittest-python
@ -50,3 +50,8 @@ pipelines:
script: script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master - git push https://heroku:$HEROKU_API_KEY@git.heroku.com/skillbox-stage.git develop:master
deployment:
prod:
- step: *unittest-python
- step: *deploy-prod