diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 60eb69f..4989f0e 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -1 +1,25 @@ -# dummy pipelines file \ No newline at end of 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