This commit is contained in:
parent
72814bd0a9
commit
154754cc31
17
.gitea/workflows/flyctl-deploy.yml
Normal file
17
.gitea/workflows/flyctl-deploy.yml
Normal 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 }}
|
3
fly.toml
3
fly.toml
|
@ -9,9 +9,8 @@ primary_region = "lhr"
|
||||||
[http_service]
|
[http_service]
|
||||||
internal_port = 8080
|
internal_port = 8080
|
||||||
force_https = true
|
force_https = true
|
||||||
auto_stop_machines = true
|
auto_stop_machines = false
|
||||||
auto_start_machines = true
|
auto_start_machines = true
|
||||||
min_machines_running = 0
|
|
||||||
processes = ["app"]
|
processes = ["app"]
|
||||||
|
|
||||||
[mounts]
|
[mounts]
|
||||||
|
|
Loading…
Reference in a new issue