File tree 3 files changed +58
-1
lines changed
3 files changed +58
-1
lines changed Original file line number Diff line number Diff line change
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 }}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ RUN go build -ldflags="-X 'main.Version=${COMMIT_SHA}'" -o backend_exe ./backend
20
20
21
21
# Multi-stage build will just copy the binary to an alpine image.
22
22
FROM ubuntu:24.04 as runner
23
- ENV ATLAS_VERSION v0.28 .0
23
+ ENV ATLAS_VERSION v0.31 .0
24
24
ARG COMMIT_SHA
25
25
WORKDIR /app
26
26
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments