updated pipelines, and removed app name from fly.toml for consistency across environments.
This commit is contained in:
parent
38f16af067
commit
6bbfbb6a95
@ -5,21 +5,26 @@
|
||||
|
||||
image: python:3.8
|
||||
|
||||
definitions:
|
||||
steps:
|
||||
- step: &deploy
|
||||
name: Deploy
|
||||
script:
|
||||
- apt-get update -qq && apt-get install -y curl
|
||||
- curl -L https://fly.io/install.sh | sh
|
||||
- fly deploy -a $FLY_APP_NAME
|
||||
|
||||
|
||||
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
|
||||
<<: *deploy
|
||||
name: Deploy to Prod
|
||||
deployment: Production
|
||||
|
||||
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
|
||||
<<: *deploy
|
||||
name: Deploy to Prod
|
||||
deployment: Staging
|
||||
|
||||
Loading…
Reference in New Issue
Block a user