Skip to content

Commit

Permalink
Add Fly.io config
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Oct 27, 2024
1 parent dd1c79c commit 4daad21
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# # See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

# name: Fly Deploy
# on:
# push:
# branches:
# - main
# jobs:
# deploy:
# name: Deploy app
# runs-on: ubuntu-latest
# concurrency: deploy-group # optional: ensure only one action runs at a time
# steps:
# - uses: actions/checkout@v4
# - uses: superfly/flyctl-actions/setup-flyctl@master
# - run: flyctl deploy --remote-only
# env:
# FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
13 changes: 13 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
app = "junior"
primary_region = "iad"
swap_size_mb = 512

[build]
image = "ghcr.io/twohoursonelife/junior:latest"

[[restart]]
policy = "on-failure"

[[vm]]
size = "shared-cpu-1x"
memory = "256mb"

0 comments on commit 4daad21

Please sign in to comment.