diff --git a/.baedeker/rewrites.example.jsonnet b/.baedeker/rewrites.example.jsonnet index a4d2ad7afb..1ee5d08784 100644 --- a/.baedeker/rewrites.example.jsonnet +++ b/.baedeker/rewrites.example.jsonnet @@ -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+: [ diff --git a/.github/workflows/forkless-update-data.yml b/.github/workflows/forkless-update-data.yml index c883fe4f17..499242bf6a 100644 --- a/.github/workflows/forkless-update-data.yml +++ b/.github/workflows/forkless-update-data.yml @@ -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/setup-node@v4.0.2 with: node-version: 20 @@ -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