File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,21 @@ jobs:
19
19
deploy :
20
20
if : github.ref == 'refs/heads/main'
21
21
needs : [test]
22
+ strategy :
23
+ matrix :
24
+ network : [calibration, mainnet]
25
+ include :
26
+ - network : calibration
27
+ FLY_API_TOKEN_NAME : FLY_API_TOKEN_CALIBRATION
28
+ - network : mainnet
29
+ FLY_API_TOKEN_NAME : FLY_API_TOKEN_MAINNET
22
30
runs-on : ubuntu-latest
23
31
steps :
24
32
- uses : actions/checkout@v4
25
33
- uses : superfly/flyctl-actions/setup-flyctl@master
26
- - run : flyctl deploy --remote-only
34
+ - run : flyctl deploy --remote-only --config fly.${{ matrix.network }}.toml
27
35
env :
28
- FLY_API_TOKEN : ${{ secrets.FLY_API_TOKEN }}
36
+ FLY_API_TOKEN : ${{ secrets[matrix.FLY_API_TOKEN_NAME] }}
29
37
- if : failure()
30
38
31
39
with :
40
48
"type": "section",
41
49
"text": {
42
50
"type": "mrkdwn",
43
- "text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` failed>*"
51
+ "text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` to `${{ matrix.network }}` failed>*"
44
52
}
45
53
}
46
54
]
Original file line number Diff line number Diff line change 3
3
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
4
#
5
5
6
- app = ' filcdn-bot'
6
+ app = ' filcdn-bot-calibration '
7
7
primary_region = ' fra'
8
8
9
9
[env ]
Original file line number Diff line number Diff line change
1
+ # fly.toml app configuration file generated for filcdn-indexer on 2025-05-29T10:47:10+02:00
2
+ #
3
+ # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
4
+ #
5
+
6
+ app = ' filcdn-bot-mainnet'
7
+ primary_region = ' fra'
8
+
9
+ [env ]
10
+ DELAY = 30_000
11
+ RPC_URL = ' https://api.node.glif.io/'
12
+ PDP_VERIFIER_ADDRESS = ' 0x1790d465d1FABE85b530B116f385091d52a12a3b'
13
+ FWSS_STATE_VIEW_ADDRESS = ' 0x1f4B10FFf972Cd429e4007ac2c77fC9e2315ca2f'
14
+ SERVICE_PROVIDER_REGISTRY_ADDRESS = ' 0x93b48FeEB7fF9a6D4d745c9EE28Bfa129E6E6676'
15
+ CDN_HOSTNAME = ' filcdn.io'
16
+
17
+ [build ]
18
+
19
+ [[vm ]]
20
+ size = ' shared-cpu-1x'
You can’t perform that action at this time.
0 commit comments