Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
- testnet
- mainnet
- nexus-testnet-v2-0-rc-1
- nexus-testnet-v2-0-rc-4
pull_request:
types: [opened, synchronize, reopened]
push:
Expand All @@ -25,10 +26,12 @@ on:
- 'iterate/testnet/**'
- 'iterate/mainnet/**'
- 'iterate/nexus-testnet-v2-0-rc-1/**'
- 'iterate/nexus-testnet-v2-0-rc-4/**'
# Tag-driven deploy. The tag prefix selects the env:
# testnet-* → full pipeline against testnet
# mainnet-* → full pipeline against mainnet
# nexus-testnet-v2-0-rc-1-* → full pipeline against the v2 RC env
# nexus-testnet-v2-0-rc-1-* → full pipeline against the v2 rc.1 RC env
# nexus-testnet-v2-0-rc-4-* → full pipeline against the v2 rc.4 RC env
# Tags are immutable per the convention, so each release-style
# promotion lands on a specific commit and the deploy run is
# attributable to that exact ref. No merge-strategy gotchas, no
Expand All @@ -38,6 +41,7 @@ on:
- 'testnet-*'
- 'mainnet-*'
- 'nexus-testnet-v2-0-rc-1-*'
- 'nexus-testnet-v2-0-rc-4-*'

permissions:
contents: write
Expand All @@ -56,6 +60,7 @@ concurrency:
group: >-
${{
(startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-') || startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/')) && 'chain-nexus-testnet-v2-0-rc-1' ||
(startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-4-') || startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-4/')) && 'chain-nexus-testnet-v2-0-rc-4' ||
(startsWith(github.ref_name, 'mainnet-') || startsWith(github.ref_name, 'iterate/mainnet/')) && 'chain-mainnet' ||
(startsWith(github.ref_name, 'testnet-') || startsWith(github.ref_name, 'iterate/testnet/')) && 'chain-testnet' ||
(github.event_name == 'workflow_dispatch' && inputs.target-env != '') && format('chain-{0}', inputs.target-env) ||
Expand Down Expand Up @@ -117,9 +122,11 @@ jobs:
needs.resolve-target.outputs.base-ref ||
inputs.target-env ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-') && 'nexus-testnet-v2-0-rc-1') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-4-') && 'nexus-testnet-v2-0-rc-4') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'mainnet-') && 'mainnet') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'testnet-') && 'testnet') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/') && 'nexus-testnet-v2-0-rc-1') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-4/') && 'nexus-testnet-v2-0-rc-4') ||
(startsWith(github.ref_name, 'iterate/mainnet/') && 'mainnet') ||
(startsWith(github.ref_name, 'iterate/testnet/') && 'testnet') ||
(github.event_name == 'pull_request' && github.base_ref) ||
Expand Down Expand Up @@ -147,12 +154,14 @@ jobs:
(github.event_name == 'push' && github.ref_type == 'branch' && (
startsWith(github.ref_name, 'iterate/testnet/') ||
startsWith(github.ref_name, 'iterate/mainnet/') ||
startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/')
startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/') ||
startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-4/')
)) ||
(github.event_name == 'push' && github.ref_type == 'tag' && (
startsWith(github.ref_name, 'testnet-') ||
startsWith(github.ref_name, 'mainnet-') ||
startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-')
startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-') ||
startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-4-')
)))
uses: ./.github/workflows/offchain-tools.prepare.yml
with:
Expand All @@ -161,9 +170,11 @@ jobs:
needs.resolve-target.outputs.base-ref ||
inputs.target-env ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-') && 'nexus-testnet-v2-0-rc-1') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-4-') && 'nexus-testnet-v2-0-rc-4') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'mainnet-') && 'mainnet') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'testnet-') && 'testnet') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/') && 'nexus-testnet-v2-0-rc-1') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-4/') && 'nexus-testnet-v2-0-rc-4') ||
(startsWith(github.ref_name, 'iterate/mainnet/') && 'mainnet') ||
(startsWith(github.ref_name, 'iterate/testnet/') && 'testnet') ||
(github.event_name == 'pull_request' && github.base_ref) ||
Expand All @@ -183,9 +194,11 @@ jobs:
needs.resolve-target.outputs.base-ref ||
inputs.target-env ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-1-') && 'nexus-testnet-v2-0-rc-1') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'nexus-testnet-v2-0-rc-4-') && 'nexus-testnet-v2-0-rc-4') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'mainnet-') && 'mainnet') ||
(github.ref_type == 'tag' && startsWith(github.ref_name, 'testnet-') && 'testnet') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-1/') && 'nexus-testnet-v2-0-rc-1') ||
(startsWith(github.ref_name, 'iterate/nexus-testnet-v2-0-rc-4/') && 'nexus-testnet-v2-0-rc-4') ||
(startsWith(github.ref_name, 'iterate/mainnet/') && 'mainnet') ||
(startsWith(github.ref_name, 'iterate/testnet/') && 'testnet') ||
(github.event_name == 'pull_request' && github.base_ref) ||
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/offchain-tools.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
${{
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'mainnet' && 'mainnet' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-1' && 'nexus-testnet-v2-0-rc-1' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-4' && 'nexus-testnet-v2-0-rc-4' ||
'testnet'
}}
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/offchain-tools.prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
${{
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'mainnet' && 'mainnet' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-1' && 'nexus-testnet-v2-0-rc-1' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-4' && 'nexus-testnet-v2-0-rc-4' ||
'testnet'
}}
strategy:
Expand Down Expand Up @@ -218,6 +219,7 @@ jobs:
${{
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'mainnet' && 'mainnet' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-1' && 'nexus-testnet-v2-0-rc-1' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-4' && 'nexus-testnet-v2-0-rc-4' ||
'testnet'
}}
steps:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/offchain-tools.readiness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
${{
(github.base_ref || github.ref_name) == 'mainnet' && 'mainnet' ||
(github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-1' && 'nexus-testnet-v2-0-rc-1' ||
(github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-4' && 'nexus-testnet-v2-0-rc-4' ||
'testnet'
}}
strategy:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/offchain-tools.register.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
${{
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'mainnet' && 'mainnet' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-1' && 'nexus-testnet-v2-0-rc-1' ||
(inputs.target-ref || github.event_name == 'pull_request' && github.base_ref || github.ref_name) == 'nexus-testnet-v2-0-rc-4' && 'nexus-testnet-v2-0-rc-4' ||
'testnet'
}}
steps:
Expand Down
Loading