From 28e39c1bdf09448ca9daa377f3bb0f0c011b941e Mon Sep 17 00:00:00 2001 From: David Date: Tue, 1 Feb 2022 03:57:05 +0000 Subject: [PATCH] Added pipelines configuration for auto-deploy --- bitbucket-pipelines.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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