Skip to content

Commit db960e1

Browse files
committed
Add fly.io GH action
1 parent 27a7060 commit db960e1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/fly.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Fly Deploy
2+
on:
3+
push:
4+
branches:
5+
- main # change to main if needed
6+
jobs:
7+
deploy:
8+
name: Deploy app
9+
runs-on: ubuntu-latest
10+
concurrency: deploy-group # optional: ensure only one action runs at a time
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: superfly/flyctl-actions/setup-flyctl@master
14+
- run: flyctl deploy --remote-only
15+
env:
16+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ primary_region = 'ams'
1414
force_https = true
1515
auto_stop_machines = 'stop'
1616
auto_start_machines = true
17-
min_machines_running = 0
17+
min_machines_running = 1
1818
processes = ['app']
1919

2020
[[vm]]

0 commit comments

Comments
 (0)