Skip to content

Deploy Fly

Deploy Fly #32

Workflow file for this run

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
name: Deploy Fly
on:
workflow_dispatch:
jobs:
app:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-fly-app-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --config ./packages/app/fly.toml --remote-only --build-secret SERVER_HOST=animegarden-server-production.internal --build-secret APP_HOST=garden.breadio.wiki
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
server:
name: Deploy server
runs-on: ubuntu-latest
concurrency: deploy-fly-server-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --config ./packages/server/fly.toml --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}