Skip to content

Commit

Permalink
Add fly.yml workflow and build reol-chan with paketo buildpack instead
Browse files Browse the repository at this point in the history
  • Loading branch information
causztic committed Aug 20, 2023
1 parent ccd2186 commit 001a8c7
Show file tree
Hide file tree
Showing 2 changed files with 37 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:
- next
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
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 reol-chan on 2023-08-20T10:17:31+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = "reol-chan"
primary_region = "sin"

[build]
builder = "paketobuildpacks/builder:base"
buildpacks = ["gcr.io/paketo-buildpacks/nodejs"]

[env]
PORT = "8080"

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

0 comments on commit 001a8c7

Please sign in to comment.