qrtr-services/bitbucket-pipelines.yml
2022-04-07 23:11:13 +00:00

26 lines
753 B
YAML

# 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:master