Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: |
flyctl secrets set \
APOLLO_GRAPH_REF=${{ secrets.APOLLO_GRAPH_REF }} \
APOLLO_KEY=${{ secrets.APOLLO_KEY }} \
GITHUB_API_TOKEN=${{ secrets.GH_API_TOKEN }}
flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/fly-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Fly Review
on:
pull_request:
types: [opened, reopened, synchronize, closed]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
review:
runs-on: ubuntu-latest
concurrency:
group: pr-${{ github.event.number }}
environment:
name: staging
url: ${{ steps.deploy.outputs.url }}
steps:
- uses: actions/checkout@v4
- uses: superfly/fly-pr-review-apps@1.5.0
id: deploy
with:
region: yyz
name: ${{ github.event.repository.name }}-pr-${{ github.event.number }}
secrets: |
APOLLO_GRAPH_REF=${{ secrets.APOLLO_GRAPH_REF }}
APOLLO_KEY=${{ secrets.APOLLO_KEY }}
GITHUB_API_TOKEN=${{ secrets.GH_API_TOKEN }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM ghcr.io/apollographql/router:v2.1.1
COPY router.yaml /dist/config/router.yaml
22 changes: 22 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# fly.toml app configuration file generated for dalestudy on 2025-05-03T20:01:41-04:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'dalestudy'
primary_region = 'yyz'

[build]

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1