+18
.github/workflows/fly-deploy.yml
+18
.github/workflows/fly-deploy.yml
···
1
+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2
+
3
+
name: Fly Deploy
4
+
on:
5
+
push:
6
+
branches:
7
+
- main
8
+
jobs:
9
+
deploy:
10
+
name: Deploy app
11
+
runs-on: ubuntu-latest
12
+
concurrency: deploy-group # optional: ensure only one action runs at a time
13
+
steps:
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 }}
+30
fly.toml
+30
fly.toml
···
1
+
# fly.toml app configuration file generated for puregarlicspace on 2024-08-06T08:36:09-07:00
2
+
#
3
+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
+
#
5
+
6
+
app = 'puregarlicspace'
7
+
primary_region = 'sjc'
8
+
9
+
[build]
10
+
dockerfile = "Dockerfile"
11
+
12
+
[http_service]
13
+
internal_port = 80
14
+
force_https = true
15
+
auto_stop_machines = 'suspend'
16
+
auto_start_machines = true
17
+
min_machines_running = 0
18
+
processes = ['app']
19
+
20
+
[[vm]]
21
+
memory = '1gb'
22
+
cpu_kind = 'shared'
23
+
cpus = 1
24
+
25
+
[mounts]
26
+
source = "puregarlicspace_data"
27
+
destination = "/data"
28
+
initial_size = "1GB"
29
+
auto_extend_size_threshold = 80
30
+
auto_extend_size_increment = "1GB"