Skip to content

Commit e36dba2

Browse files
committed
ci: auto-deploy to Fly.io on push to main
1 parent ad0f5ac commit e36dba2

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy to Fly.io
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
# Only one deploy at a time
9+
concurrency:
10+
group: deploy
11+
cancel-in-progress: false
12+
13+
jobs:
14+
deploy:
15+
name: Deploy warpgrid-cloud
16+
runs-on: blacksmith-4vcpu-ubuntu-2404
17+
# Only deploy if CI passed (check & test must succeed)
18+
needs: []
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: superfly/flyctl-actions/setup-flyctl@master
23+
24+
- name: Deploy to Fly.io
25+
run: flyctl deploy --config infra/fly-cloud.toml --dockerfile infra/Dockerfile --app warpgrid-cloud
26+
env:
27+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)