-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
203 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,6 +91,28 @@ jobs: | |
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ matrix.relay_branch }} | ||
|
||
- name: Check and pull acala image | ||
id: acala | ||
uses: cloudposse/github-action-docker-image-exists@main | ||
with: | ||
registry: registry.hub.docker.com | ||
organization: acala | ||
repository: ${{ matrix.acala_repository }} | ||
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ matrix.acala_version }} | ||
|
||
- name: Check and pull MOONBEAM image | ||
id: moonbeam | ||
uses: cloudposse/github-action-docker-image-exists@main | ||
with: | ||
registry: registry.hub.docker.com | ||
organization: moonbeamfoundation | ||
repository: moonbeam | ||
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ matrix.moonbeam_version }} | ||
|
||
- name: Check and pull ASSETHUB image | ||
id: assethub | ||
uses: cloudposse/github-action-docker-image-exists@main | ||
|
@@ -102,6 +124,55 @@ jobs: | |
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ matrix.assethub_version }} | ||
|
||
- name: Check and pull ASTAR image | ||
id: astar | ||
uses: cloudposse/github-action-docker-image-exists@main | ||
with: | ||
registry: registry.hub.docker.com | ||
organization: staketechnologies | ||
repository: astar-collator | ||
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ matrix.astar_version }} | ||
|
||
- name: Check and pull POLKADEX image | ||
id: polkadex | ||
uses: cloudposse/github-action-docker-image-exists@main | ||
with: | ||
registry: registry.hub.docker.com | ||
organization: polkadex | ||
repository: parachain | ||
login: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
tag: ${{ env.POLKADEX_BUILD_BRANCH }} | ||
|
||
- name: Prepare Hydradx | ||
uses: ./.github/actions/buildContainer | ||
id: hydradx | ||
with: | ||
container: uniquenetwork/builder-hydradx | ||
tag: ${{ env.HYDRADX_BUILD_BRANCH }} | ||
context: . | ||
dockerfile: .docker/Dockerfile-hydradx | ||
args: | | ||
--build-arg HYDRADX_BUILD_BRANCH=${{ env.HYDRADX_BUILD_BRANCH }} | ||
--build-arg RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }} | ||
dockerhub_username: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
dockerhub_token: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
|
||
- name: Prepare latest | ||
uses: ./.github/actions/buildContainer | ||
id: latest | ||
with: | ||
container: uniquenetwork/ci-xcm-local | ||
tag: ${{ matrix.network }}-${{ env.REF_SLUG }}-${{ env.BUILD_SHA }} | ||
context: . | ||
dockerfile: .docker/Dockerfile-unique | ||
args: | | ||
--build-arg FEATURES=${{ matrix.network }}-runtime | ||
dockerhub_username: ${{ secrets.CORE_DOCKERHUB_USERNAME }} | ||
dockerhub_token: ${{ secrets.CORE_DOCKERHUB_TOKEN }} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: 20 | ||
|
@@ -134,7 +205,13 @@ jobs: | |
inputs: | | ||
.baedeker/xcm-${{ matrix.network }}.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: []}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/acala':{dockerImage:'${{ steps.acala.outputs.image }}:${{ steps.acala.outputs.tag }}'}}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/moonbeam':{dockerImage:'${{ steps.moonbeam.outputs.image }}:${{ steps.moonbeam.outputs.tag }}'}}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/assethub':{dockerImage:'${{ steps.assethub.outputs.image }}:${{ steps.assethub.outputs.tag }}'}}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/astar':{dockerImage:'${{ steps.astar.outputs.image }}:${{ steps.astar.outputs.tag }}', docker:'/usr/local/bin/astar-collator'}}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/polkadex':{dockerImage:'${{ steps.polkadex.outputs.image }}:${{ steps.polkadex.outputs.tag }}'}}) | ||
snippet:(import 'baedeker-library/ops/rewrites.libsonnet').rewriteNodePaths({'bin/hydradx':{dockerImage:'${{ steps.latest.outputs.name }}'}}) | ||
- name: Upload network config | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -181,11 +258,11 @@ jobs: | |
reporter: mochawesome-json | ||
fail-on-error: 'false' | ||
|
||
# - name: Clean Workspace | ||
# if: always() | ||
# uses: AutoModality/[email protected] | ||
- name: Clean Workspace | ||
if: always() | ||
uses: AutoModality/[email protected] | ||
|
||
# - name: Remove builder cache | ||
# if: always() | ||
# run: | | ||
# docker system prune -a -f | ||
- name: Remove builder cache | ||
if: always() | ||
run: | | ||
docker system prune -a -f |