Skip to content

Commit 3c0de91

Browse files
committed
ci(fly): Align deploy with local script
1 parent 49a6eac commit 3c0de91

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/fly-deploy.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2-
31
name: Fly Deploy
42
on:
53
push:
@@ -9,10 +7,16 @@ jobs:
97
deploy:
108
name: Deploy app
119
runs-on: ubuntu-latest
12-
concurrency: deploy-group # optional: ensure only one action runs at a time
10+
concurrency: deploy-group
1311
steps:
1412
- uses: actions/checkout@v4
1513
- uses: superfly/flyctl-actions/setup-flyctl@master
16-
- run: flyctl deploy --remote-only
14+
- run: |
15+
flyctl console --dockerfile Dockerfile.builder \
16+
-C "/srv/deploy.sh" \
17+
--env=FLY_API_TOKEN=$FLY_API_TOKEN \
18+
--vm-cpukind shared \
19+
--vm-memory 1024 \
20+
--vm-cpus 1
1721
env:
1822
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

0 commit comments

Comments
 (0)