Skip to content

Commit

Permalink
auto deploy to fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
nghiamphan committed Feb 25, 2024
1 parent 3d3d281 commit b53a238
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@ jobs:
working-directory: ./backend
run: npm run build:linux

- uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy to Fly.io
working-directory: ./backend
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

3 changes: 3 additions & 0 deletions backend/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
app = 'movie-list'
primary_region = 'yyz'

[env]
PORT = "3000"

[build]

[http_service]
Expand Down

0 comments on commit b53a238

Please sign in to comment.