Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:
deploy:
if: github.ref == 'refs/heads/main'
needs: [test]
strategy:
matrix:
network: [calibration, mainnet]
Copy link
Contributor

@bajtos bajtos Sep 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this line is not needed if you use the include block. I think with this line, you will get 4 jobs - two jobs with no FLY_API_TOKEN_NAME (created from the network matrix field) and two jobs from the include block.

Suggested change
network: [calibration, mainnet]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include:
- network: calibration
FLY_API_TOKEN_NAME: FLY_API_TOKEN_CALIBRATION
- network: mainnet
FLY_API_TOKEN_NAME: FLY_API_TOKEN_MAINNET
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
- run: flyctl deploy --remote-only --config fly.${{ matrix.network }}.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_API_TOKEN: ${{ secrets[matrix.FLY_API_TOKEN_NAME] }}
- if: failure()
uses: slackapi/[email protected]
with:
Expand All @@ -40,7 +48,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` failed>*"
"text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Deployment of `${{ github.event.repository.name }}` to `${{ matrix.network }}` failed>*"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion fly.toml → fly.calibration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'filcdn-bot'
app = 'filcdn-bot-calibration'
primary_region = 'fra'

[env]
Expand Down
21 changes: 21 additions & 0 deletions fly.mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# fly.toml app configuration file generated for filcdn-indexer on 2025-05-29T10:47:10+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'filcdn-bot-mainnet'
primary_region = 'fra'

[env]
DELAY = 30_000
GLIF_TOKEN = 'TODO'
RPC_URL = 'https://api.node.glif.io/'
PDP_VERIFIER_ADDRESS = '0x1790d465d1FABE85b530B116f385091d52a12a3b'
FWSS_STATE_VIEW_ADDRESS = '0x1f4B10FFf972Cd429e4007ac2c77fC9e2315ca2f'
SERVICE_PROVIDER_REGISTRY_ADDRESS = '0x93b48FeEB7fF9a6D4d745c9EE28Bfa129E6E6676'
CDN_HOSTNAME = 'filcdn.io'

[build]

[[vm]]
size = 'shared-cpu-1x'