2018-10-08 20:16:42 +00:00
|
|
|
# This is a sample build configuration for Python.
|
|
|
|
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples.
|
|
|
|
# Only use spaces to indent your .yml configuration.
|
|
|
|
# -----
|
|
|
|
# You can specify a custom docker image from Docker Hub as your build environment.
|
|
|
|
image: python:3.5.1
|
|
|
|
|
|
|
|
pipelines:
|
2018-10-08 20:29:32 +00:00
|
|
|
branches:
|
|
|
|
master:
|
|
|
|
- step:
|
|
|
|
# set HEROKU_API_KEY and HEROKU_APP_NAME environment variables
|
|
|
|
# set clone `depth: full' as described here: https://confluence.atlassian.com/x/Y9-5Mw
|
|
|
|
name: Deploy to Heroku staging
|
|
|
|
deployment: staging # set to test, staging or production
|
|
|
|
# trigger: manual # uncomment to have a manual step
|
|
|
|
script:
|
2018-10-22 18:00:09 +00:00
|
|
|
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
|
2018-10-08 20:35:41 +00:00
|
|
|
develop:
|
|
|
|
- step:
|
|
|
|
# set HEROKU_API_KEY and HEROKU_APP_NAME environment variables
|
|
|
|
# set clone `depth: full' as described here: https://confluence.atlassian.com/x/Y9-5Mw
|
|
|
|
name: Deploy to Heroku test
|
|
|
|
deployment: test # set to test, staging or production
|
|
|
|
# trigger: manual # uncomment to have a manual step
|
|
|
|
script:
|
2018-10-22 18:00:09 +00:00
|
|
|
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_TEST.git HEAD:master
|
2018-10-08 20:16:42 +00:00
|
|
|
|