diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index fe83a44..be3a5c3 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -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 }} + diff --git a/backend/fly.toml b/backend/fly.toml index 021c48a..0ed065a 100644 --- a/backend/fly.toml +++ b/backend/fly.toml @@ -6,6 +6,9 @@ app = 'movie-list' primary_region = 'yyz' +[env] + PORT = "3000" + [build] [http_service]