Skip to content

Commit

Permalink
Merge pull request #46 from a16z-infra/auto-deploy
Browse files Browse the repository at this point in the history
Auto deploy to fly when there are updates on main branch
  • Loading branch information
timqian committed Jun 29, 2023
2 parents 9f5e786 + f2f8027 commit c175784
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/fly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: mv fly.toml.example fly.toml && flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
14 changes: 14 additions & 0 deletions fly.toml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# fly.toml app configuration file generated for ai-getting-started on 2023-06-16T14:37:45+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "ai-getting-started"
primary_region = "sin"

[http_service]
internal_port = 3000
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0

0 comments on commit c175784

Please sign in to comment.