Skip to content

Commit

Permalink
Pro deployment initial (#1883)
Browse files Browse the repository at this point in the history
* add fly.toml

* deploy pro

* upgrade atlas version
  • Loading branch information
motatoes authored Feb 19, 2025
1 parent ba40140 commit 8c758fb
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/pro-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Deploy pro-backend
on:
push:
branches:
- develop
- pro
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 --config fly-pro.toml
env:
FLY_API_TOKEN: ${{ secrets.FLYIO_PRO_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile_backend
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o backend_exe ./backend

# Multi-stage build will just copy the binary to an alpine image.
FROM ubuntu:24.04 as runner
ENV ATLAS_VERSION v0.28.0
ENV ATLAS_VERSION v0.31.0
ARG COMMIT_SHA
WORKDIR /app

Expand Down
38 changes: 38 additions & 0 deletions fly-pro.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# fly.toml app configuration file generated for digger-pro on 2025-02-18T09:50:24+03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'digger-pro'
primary_region = 'lhr'

[env]
DIGGER_CLOUD_HOSTNAME = 'https://ui-backend.digger.dev'
JWT_AUTH = 'true'

[build]
dockerfile = 'Dockerfile_backend'

[[services]]
protocol = 'tcp'
internal_port = 3000
processes = ['app']

[[services.ports]]
port = 80
handlers = ['http']
force_https = true

[[services.ports]]
port = 443
handlers = ['tls', 'http']

[services.concurrency]
type = 'connections'
hard_limit = 25
soft_limit = 20

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1

0 comments on commit 8c758fb

Please sign in to comment.