tangled
alpha
login
or
join now
graham.systems
/
space
0
fork
atom
An experimental IndieWeb site built in Go.
0
fork
atom
overview
issues
pulls
pipelines
add deployment files for Fly.io
Graham Barber
2 years ago
5dbc7a28
b4f54506
+48
2 changed files
expand all
collapse all
unified
split
.github
workflows
fly-deploy.yml
fly.toml
+18
.github/workflows/fly-deploy.yml
···
1
1
+
# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/
2
2
+
3
3
+
name: Fly Deploy
4
4
+
on:
5
5
+
push:
6
6
+
branches:
7
7
+
- main
8
8
+
jobs:
9
9
+
deploy:
10
10
+
name: Deploy app
11
11
+
runs-on: ubuntu-latest
12
12
+
concurrency: deploy-group # optional: ensure only one action runs at a time
13
13
+
steps:
14
14
+
- uses: actions/checkout@v4
15
15
+
- uses: superfly/flyctl-actions/setup-flyctl@master
16
16
+
- run: flyctl deploy --remote-only
17
17
+
env:
18
18
+
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
+30
fly.toml
···
1
1
+
# fly.toml app configuration file generated for puregarlicspace on 2024-08-06T08:36:09-07:00
2
2
+
#
3
3
+
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
4
+
#
5
5
+
6
6
+
app = 'puregarlicspace'
7
7
+
primary_region = 'sjc'
8
8
+
9
9
+
[build]
10
10
+
dockerfile = "Dockerfile"
11
11
+
12
12
+
[http_service]
13
13
+
internal_port = 80
14
14
+
force_https = true
15
15
+
auto_stop_machines = 'suspend'
16
16
+
auto_start_machines = true
17
17
+
min_machines_running = 0
18
18
+
processes = ['app']
19
19
+
20
20
+
[[vm]]
21
21
+
memory = '1gb'
22
22
+
cpu_kind = 'shared'
23
23
+
cpus = 1
24
24
+
25
25
+
[mounts]
26
26
+
source = "puregarlicspace_data"
27
27
+
destination = "/data"
28
28
+
initial_size = "1GB"
29
29
+
auto_extend_size_threshold = 80
30
30
+
auto_extend_size_increment = "1GB"