diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index f12feaa..99cb89d 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -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 diff --git a/fly.toml b/fly.toml index 81208da..4a7ba22 100644 --- a/fly.toml +++ b/fly.toml @@ -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