Skip to content

Commit 8c758fb

Browse files
authored
Pro deployment initial (#1883)
* add fly.toml * deploy pro * upgrade atlas version
1 parent ba40140 commit 8c758fb

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

.github/workflows/pro-deploy.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2+
3+
name: Deploy pro-backend
4+
on:
5+
push:
6+
branches:
7+
- develop
8+
- pro
9+
jobs:
10+
deploy:
11+
name: Deploy app
12+
runs-on: ubuntu-latest
13+
concurrency: deploy-group # optional: ensure only one action runs at a time
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: superfly/flyctl-actions/setup-flyctl@master
17+
- run: flyctl deploy --remote-only --config fly-pro.toml
18+
env:
19+
FLY_API_TOKEN: ${{ secrets.FLYIO_PRO_TOKEN }}

Dockerfile_backend

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o backend_exe ./backend
2020

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

fly-pro.toml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# fly.toml app configuration file generated for digger-pro on 2025-02-18T09:50:24+03:00
2+
#
3+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4+
#
5+
6+
app = 'digger-pro'
7+
primary_region = 'lhr'
8+
9+
[env]
10+
DIGGER_CLOUD_HOSTNAME = 'https://ui-backend.digger.dev'
11+
JWT_AUTH = 'true'
12+
13+
[build]
14+
dockerfile = 'Dockerfile_backend'
15+
16+
[[services]]
17+
protocol = 'tcp'
18+
internal_port = 3000
19+
processes = ['app']
20+
21+
[[services.ports]]
22+
port = 80
23+
handlers = ['http']
24+
force_https = true
25+
26+
[[services.ports]]
27+
port = 443
28+
handlers = ['tls', 'http']
29+
30+
[services.concurrency]
31+
type = 'connections'
32+
hard_limit = 25
33+
soft_limit = 20
34+
35+
[[vm]]
36+
memory = '1gb'
37+
cpu_kind = 'shared'
38+
cpus = 1

0 commit comments

Comments
 (0)