Commit ee43ada 1 parent c4275c6 commit ee43ada Copy full SHA for ee43ada
File tree 3 files changed +35
-20
lines changed
3 files changed +35
-20
lines changed Original file line number Diff line number Diff line change
1
+ # flyctl launch added from .gitignore
2
+ ** /.dart_tool
3
+ fly.toml
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
job_001 :
10
+ name : Deploy
10
11
runs-on : ubuntu-latest
12
+ concurrency : deploy-group
11
13
steps :
12
- - name : Checkout
13
- uses : actions/checkout@v3
14
-
15
- - name : Login to Docker hub
16
- uses : docker/login-action@v2
17
- with :
18
- username : ${{ secrets.DOCKER_HUB_USERNAME }}
19
- password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
20
-
21
- - name : Setup build
22
- uses : docker/setup-buildx-action@v2
23
-
24
- - name : Build and push
25
- uses : docker/build-push-action@v3
26
- with :
27
- context : .
28
- file : ./packages/architect_server/Dockerfile
29
- push : true
30
- tags : ${{ secrets.DOCKER_HUB_USERNAME }}/architect:main
31
- target : prod
14
+ - uses : actions/checkout@v4
15
+ - uses : superfly/flyctl-actions/setup-flyctl@master
16
+ - run : flyctl deploy --remote-only
17
+ env :
18
+ FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
Original file line number Diff line number Diff line change
1
+ app = ' architect'
2
+ primary_region = ' ams'
3
+
4
+ [build ]
5
+ dockerfile = ' ./packages/architect_server/Dockerfile'
6
+
7
+ [http_service ]
8
+ internal_port = 8080
9
+ force_https = true
10
+ auto_stop_machines = true
11
+ auto_start_machines = true
12
+ min_machines_running = 0
13
+ processes = [' app' ]
14
+
15
+ [[http_service .checks ]]
16
+ grace_period = " 10s"
17
+ interval = " 30s"
18
+ method = " GET"
19
+ timeout = " 5s"
20
+ path = " /_internal_/healthcheck"
21
+
22
+ [[vm ]]
23
+ memory = ' 1gb'
24
+ cpu_kind = ' shared'
25
+ cpus = 1
You can’t perform that action at this time.
0 commit comments