Skip to content

Commit

Permalink
Merge pull request #275 from hitblast/main
Browse files Browse the repository at this point in the history
🔨 [tuning] Add new deployment workflows
  • Loading branch information
hitblast authored Sep 30, 2024
2 parents 3977eee + 3534d82 commit 5b51cbb
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT

name: Create, Publish & Deploy Docker Image
name: Publish Docker Image

on:
release:
Expand Down
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 }}
20 changes: 20 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# fly.toml app configuration file generated for igknite on 2024-09-30T19:16:03+06:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'igknite'
primary_region = 'sin'

[build]

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

[[vm]]
size = 'shared-cpu-1x'

0 comments on commit 5b51cbb

Please sign in to comment.