updated pipelines, and removed app name from fly.toml for consistency across environments.

This commit is contained in:
DJ Gillespie 2023-05-17 20:31:16 -06:00
parent 38f16af067
commit 6bbfbb6a95
2 changed files with 18 additions and 13 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
# fly.toml file generated for qrtr-services-staging on 2023-05-17T12:48:42-06:00
app = "qrtr-services-staging"
#app = "qrtr-services"
kill_signal = "SIGINT"
kill_timeout = 5