Add CI to Fly.io
All checks were successful
Fly Deploy / Deploy app (push) Successful in 1m45s

This commit is contained in:
Gabriel Simmer 2023-07-21 09:14:17 +01:00
parent 72814bd0a9
commit 154754cc31
Signed by: arch
GPG key ID: C81B106D46C5B875
2 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,17 @@
name: Fly Deploy
on:
push:
branches:
- trunk
jobs:
deploy:
name: Deploy app
runs-on: debian-latest
steps:
- uses: https://github.com/RouxAntoine/checkout@v3.5.4
with:
ref: trunk
- uses: https://github.com/superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

View file

@ -9,9 +9,8 @@ primary_region = "lhr"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[mounts]