Added pipelines configuration for auto-deploy

This commit is contained in:
David 2022-02-01 03:57:05 +00:00 committed by DJ Gillespie
parent 6d82e38853
commit 28e39c1bdf

View File

@ -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