Added pipelines configuration for auto-deploy
This commit is contained in:
parent
6d82e38853
commit
28e39c1bdf
@ -1 +1,25 @@
|
||||
# dummy pipelines file
|
||||
# Template python-build
|
||||
|
||||
# This template allows you to validate your python code.
|
||||
# The workflow allows running tests and code linting on the default branch.
|
||||
|
||||
image: python:3.8
|
||||
|
||||
pipelines:
|
||||
branches:
|
||||
master:
|
||||
- step:
|
||||
name: Deploy to Heroku Prod
|
||||
caches:
|
||||
- pip
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_PROD.git HEAD
|
||||
dev-master:
|
||||
- step:
|
||||
name: Deploy to Heroku Staging
|
||||
caches:
|
||||
- pip
|
||||
script:
|
||||
- pip install -r requirements.txt
|
||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_STAGING.git HEAD
|
||||
|
||||
Loading…
Reference in New Issue
Block a user