1name: xcm testnet234on:5 6 pull_request:7 branches:8 - master9 types:10 - opened11 - reopened12 - synchronize 13 - ready_for_review1415 16 workflow_dispatch:171819env:20 REPO_URL: ${{ github.server_url }}/${{ github.repository }}2122concurrency:23 group: ${{ github.workflow }}-${{ github.ref }}24 cancel-in-progress: true252627jobs:2829 prepare-execution-marix:3031 name: Prepare execution matrix3233 runs-on: XL234 outputs:35 matrix: ${{ steps.create_matrix.outputs.matrix }}3637 steps:3839 - name: Clean Workspace40 uses: AutoModality/action-clean@v1.1.04142 43 - uses: actions/checkout@v344 with:45 ref: ${{ github.head_ref }} 4647 - name: Read .env file48 uses: xom9ikk/dotenv@v1.0.24950 - name: Create Execution matrix51 uses: fabiocaccamo/create-matrix-action@v252 id: create_matrix53 with:54 matrix: |55 network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}56 network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}57 network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}5859 xcm-build:60 needs: prepare-execution-marix61 62 runs-on: [XL2]6364 timeout-minutes: 6006566 name: ${{ matrix.network }}6768 continue-on-error: true 6970 strategy:71 matrix:72 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}737475 steps:76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 9394 - name: Clean Workspace95 uses: AutoModality/action-clean@v1.1.09697 98 - uses: actions/checkout@v399 with:100 ref: ${{ github.head_ref }} 101102 - name: Read .env file103 uses: xom9ikk/dotenv@v1.0.2104105 - name: Generate ENV related extend Dockerfile file106 uses: cuchi/jinja2-action@v1.2.0107 with:108 template: .docker/Dockerfile-xcm.j2109 output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml110 variables: |111 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}112 NETWORK=${{ matrix.network }}113 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}114 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}115 FEATURE=${{ matrix.features }}116 RUNTIME=${{ matrix.runtime }}117 BRANCH=${{ github.head_ref }}118 ACALA_BUILD_BRANCH=${{ env.ACALA_BUILD_BRANCH }}119 MOONBEAM_BUILD_BRANCH=${{ env.MOONBEAM_BUILD_BRANCH }}120 CUMULUS_BUILD_BRANCH=${{ env.CUMULUS_BUILD_BRANCH }}121122 - name: Show build Dockerfile123 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml124125 - name: Show launch-config-xcm-${{ matrix.network }} configuration126 run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json127128 - name: Build the stack129 run: cd .docker/ && docker build --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag xcm-nodes-${{ matrix.network }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .130131 132 133 134 135 136 137138 139 140 141142 - name: Log in to Docker Hub143 uses: docker/login-action@v2.0.0144 with:145 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}146 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}147148 - name: Push docker version image 149 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ github.sha }}150151 - name: Push docker image latest152 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest