Skip to content

Commit

Permalink
chore: changed from render to fly for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmariano committed Aug 5, 2024
1 parent 34ac81e commit 7732b8d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/docker.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
push:
branches:
- 'release/*'
release:
types: [released]
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 }}
MY_API_KEY: ${{ secrets.MY_API_KEY }}
GROK_API_KEY: ${{ secrets.GROK_API_KEY }}
GEMINI_PRO_API_KEY: ${{ secrets.GEMINI_PRO_API_KEY }}
REPLICATE_API_TOKEN: ${{ secrets.REPLICATE_API_TOKEN }}
CLOUDINARY_URL: ${{ secrets.CLOUDINARY_URL }}
TESSDATA_PREFIX: "/usr/local/share/tessdata"
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 omnicron-backendsever on 2024-08-05T23:41:01+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'omnicron-backendsever'
primary_region = 'ams'

[build]

[http_service]
internal_port = 8000
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

0 comments on commit 7732b8d

Please sign in to comment.