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 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: pipelines:
branches: branches:
master: master:
- step: - step:
name: Deploy to Heroku Prod <<: *deploy
caches: name: Deploy to Prod
- pip deployment: Production
script:
- pip install -r requirements.txt
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_PROD.git HEAD
dev-master: dev-master:
- step: - step:
name: Deploy to Heroku Staging <<: *deploy
caches: name: Deploy to Prod
- pip deployment: Staging
script:
- pip install -r requirements.txt
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME_STAGING.git HEAD:master

View File

@ -1,6 +1,6 @@
# fly.toml file generated for qrtr-services-staging on 2023-05-17T12:48:42-06:00 # 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_signal = "SIGINT"
kill_timeout = 5 kill_timeout = 5