Add separate deploy pipeline
This commit is contained in:
parent
5774715502
commit
6bd709b8c4
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue