Skip to content

Commit

Permalink
fix logical bag for forkless-with-data workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Nov 18, 2024
1 parent 23a6b30 commit f5f997c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .baedeker/rewrites.example.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function(prev, repoDir)
'bin/assethub': { dockerImage: 'parity/polkadot-parachain:%s' % dotenv.STATEMINE_BUILD_BRANCH },
'bin/astar': { dockerImage: 'staketechnologies/astar-collator:%s' % dotenv.ASTAR_BUILD_BRANCH },
'bin/polkadex': { dockerImage: 'polkadex/mainnet:%s' % dotenv.POLKADEX_BUILD_BRANCH },
'bin/hydradx': { dockerImage: 'uniquenetwork/builder-hydraDx:%s' % dotenv.HYDRADX_BUILD_BRANCH },
'bin/hydradx': { dockerImage: 'galacticcouncil/hydra-dx:%s' % dotenv.HYDRADX_BUILD_BRANCH },
},
extra_node_mixin={
extraArgs+: [
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/forkless-update-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,20 @@ jobs:
image: ${{ steps.latest.outputs.name }}
directory: /wasm

- name: Prepare mainnet
uses: ./.github/actions/buildContainer
id: mainnet
with:
container: uniquenetwork/ci-nodata-${{ matrix.network }}
tag: ${{ matrix.mainnet_branch }}
context: .docker
dockerfile: Dockerfile-unique-release
args: |
--build-arg NETWORK=${{ matrix.network }}
--build-arg UNIQUE_VERSION=${{ matrix.mainnet_branch }}
dockerhub_username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.CORE_DOCKERHUB_TOKEN }}

- uses: actions/[email protected]
with:
node-version: 20
Expand Down Expand Up @@ -139,7 +153,9 @@ jobs:
inputs: |
.baedeker/forkless-data.jsonnet
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/polkadot':{dockerImage:'${{ steps.polkadot.outputs.image }}:${{ steps.polkadot.outputs.tag }}'}})
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, extra_node_mixin={extraArgs: []})
# with data build uses old runtime, but new node, thus we use mainnet image for spec generation, and then latest image for nodes.
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.latest.outputs.name }}'}}, extra_node_mixin={extraArgs: []}, for_chain = false)
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/unique':{dockerImage:'${{ steps.mainnet.outputs.name }}'}}, extra_node_mixin={extraArgs: []})
- name: Ensure network is alive
working-directory: js-packages/tests
Expand Down

0 comments on commit f5f997c

Please sign in to comment.