Skip to content

Commit

Permalink
chore: add deploy settings for production
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Sep 18, 2024
1 parent 6c3a504 commit ec1e291
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Deploy production
on:
workflow_dispatch:
release:
types:
- published
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
deploy:
uses: exKAZUu-Research/reusable-workflows/.github/workflows/deploy.yml@main
with:
environment: production
secrets:
DOT_ENV: ${{ secrets.DOT_ENV_PRODUCTION }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
GCP_SA_KEY_JSON: ${{ secrets.GCP_SA_KEY }}
GH_TOKEN: ${{ secrets.GH_BOT_PAT }}
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release
on:
push:
branches:
- release
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
release:
uses: exKAZUu-Research/reusable-workflows/.github/workflows/release.yml@main
with:
skip_build: true
secrets:
GH_TOKEN: ${{ secrets.GH_BOT_PAT }}
19 changes: 19 additions & 0 deletions fly-production.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
app = 'trace-dojo'
primary_region = 'nrt'

[[mounts]]
source = "db"
destination = "/app/prisma/mount"

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

[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1

0 comments on commit ec1e291

Please sign in to comment.