Skip to content

Commit

Permalink
add more
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Aug 29, 2024
1 parent 28de1f8 commit 46e46de
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 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 }}
27 changes: 24 additions & 3 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
app = "fly-log-shipper-example"
# fly.toml app configuration file generated for sfce-fly-log-shipper on 2024-08-29T09:42:48-07:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

[metrics]
app = 'sfce-fly-log-shipper'
primary_region = 'sjc'

[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

[[metrics]]
port = 9598
path = "/metrics"
path = '/metrics'

0 comments on commit 46e46de

Please sign in to comment.