Github Actions

This commit is contained in:
Vineeth Voruganti 2023-09-13 17:57:30 -04:00
parent 44a69e06fb
commit 14920bbf04
3 changed files with 29 additions and 2 deletions

27
.github/workflows/fly.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Fly Deploy
on:
push:
branches:
- main
- staging
jobs:
prod-deploy:
if: github.ref == 'refs/heads/main'
name: Deploy Production App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy -c fly.toml --app honcho --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
staging-deploy:
if: github.ref == 'refs/heads/staging'
name: Deploy Staging App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy -c fly.toml --app staging-honcho --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

View File

@ -301,7 +301,7 @@ class BloomChain:
print("Finished User Prediction")
print("=========================================")
finally:
yield "TERMINATED SEQUENCE"
yield ""

View File

@ -18,7 +18,7 @@ api = "python -m uvicorn main:app --host 0.0.0.0 --port 8000"
internal_port = 8000
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
min_machines_running = 1
processes = ["api"]
[http_service.concurrency]
type = "requests"