difftreelog
fix xcm workflow
in: master
1 file changed
.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth1name: xcm-testnet-build23# Controls when the action will run.4on:5 workflow_call:6 7 # Allows you to run this workflow manually from the Actions tab8 workflow_dispatch:910#Define Workflow variables11env:12 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1314# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:1617 prepare-execution-marix:1819 name: Prepare execution matrix2021 runs-on: [XL]22 outputs:23 matrix: ${{ steps.create_matrix.outputs.matrix }}2425 steps:2627 - name: Clean Workspace28 uses: AutoModality/action-clean@v1.1.02930 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it31 - uses: actions/checkout@v332 with:33 ref: ${{ github.head_ref }} #Checking out head commit3435 - name: Read .env file36 uses: xom9ikk/dotenv@v1.0.23738 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v240 id: create_matrix41 with:42 matrix: |43 network {opal}, runtime {opal}, features {opal-runtime}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.WESTMINT_BUILD_BRANCH }}}44 network {quartz}, runtime {quartz}, features {quartz-runtime}, acala_version {${{ env.KARURA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONRIVER_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINE_BUILD_BRANCH }}}45 network {unique}, runtime {unique}, features {unique-runtime}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINT_BUILD_BRANCH }}}4647 xcm-build:48 49 needs: prepare-execution-marix50 # The type of runner that the job will run on51 runs-on: [XL]5253 timeout-minutes: 6005455 name: ${{ matrix.network }}5657 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5859 strategy:60 matrix:61 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}6263 steps:64 - name: Skip if pull request is in Draft65 if: github.event.pull_request.draft == true66 run: exit 16768 - name: Clean Workspace69 uses: AutoModality/action-clean@v1.1.07071 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it72 - uses: actions/checkout@v373 with:74 ref: ${{ github.head_ref }} #Checking out head commit7576 - name: Read .env file77 uses: xom9ikk/dotenv@v1.0.27879 - name: Log in to Docker Hub80 uses: docker/login-action@v2.0.081 with:82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}8485 - name: Install jq86 run: sudo apt install jq -y8788 - name: Get autorization token from DOCKERHUB89 run: | 90 # aquire token91 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)92 export TOKEN=$TOKEN9394 # Check POLKADOT version and build it if it doesn't exist in repository95 - name: Generate ENV related extend Dockerfile file for POLKADOT96 uses: cuchi/jinja2-action@v1.2.097 with:98 template: .docker/Dockerfile-polkadot.j299 output_file: .docker/Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml100 variables: |101 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}102 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}103104 - name: Check if the dockerhub repository contains the needed version POLKADOT105 run: | 106 # Get TAGS from DOCKERHUB repository107 POLKADOT_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-polkadot/tags/?page_size=100 | jq -r '."results"[]["name"]')108 # Show TAGS109 echo "POLKADOT TAGS:"110 echo $POLKADOT_TAGS111 # Check correct version POLKADOT and build it if it doesn't exist in POLKADOT TAGS112 if [[ ${POLKADOT_TAGS[*]} =~ (^|[[:space:]])"${{ env.POLKADOT_BUILD_BRANCH }}"($|[[:space:]]) ]]; then113 echo "Repository has needed POLKADOT version";114 docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}115 else116 echo "Repository has not needed POLKADOT version, so build it";117 cd .docker/ && docker build --no-cache --file ./Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml --tag uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }} .118 echo "Push needed POLKADOT version to the repository";119 docker push uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}120 fi121 shell: bash122123 # Check ACALA version and build it if it doesn't exist in repository124 - name: Generate ENV related extend Dockerfile file for ACALA125 uses: cuchi/jinja2-action@v1.2.0126 with:127 template: .docker/Dockerfile-acala.j2128 output_file: .docker/Dockerfile-acala.${{ matrix.acala_version }}.yml129 variables: |130 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}131 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}132133 - name: Check if the dockerhub repository contains the needed ACALA version134 run: | 135 # Get TAGS from DOCKERHUB repository136 ACALA_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-acala/tags/?page_size=100 | jq -r '."results"[]["name"]')137 # Show TAGS138 echo "ACALA TAGS:"139 echo $ACALA_TAGS140 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS141 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then142 echo "Repository has needed ACALA version";143 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}144 else145 echo "Repository has not needed ACALA version, so build it";146 cd .docker/ && docker build --no-cache --file ./Dockerfile-acala.${{ matrix.acala_version }}.yml --tag uniquenetwork/builder-acala:${{ matrix.acala_version }} .147 echo "Push needed ACALA version to the repository";148 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}149 fi150 shell: bash151152 # Check MOONBEAM version and build it if it doesn't exist in repository153 - name: Generate ENV related extend Dockerfile file for MOONBEAM154 uses: cuchi/jinja2-action@v1.2.0155 with:156 template: .docker/Dockerfile-moonbeam.j2157 output_file: .docker/Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml158 variables: |159 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}160 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}161162 - name: Check if the dockerhub repository contains the needed MOONBEAM version163 run: | 164 # Get TAGS from DOCKERHUB repository165 MOONBEAM_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-moonbeam/tags/?page_size=100 | jq -r '."results"[]["name"]')166 # Show TAGS167 echo "MOONBEAM TAGS:"168 echo $MOONBEAM_TAGS169 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS170 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then171 echo "Repository has needed MOONBEAM version";172 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}173 else174 echo "Repository has not needed MOONBEAM version, so build it";175 cd .docker/ && docker build --no-cache --file ./Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml --tag uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }} .176 echo "Push needed MOONBEAM version to the repository";177 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}178 fi179 shell: bash180181182 # Check CUMULUS version and build it if it doesn't exist in repository183 - name: Generate ENV related extend Dockerfile file for CUMULUS184 uses: cuchi/jinja2-action@v1.2.0185 with:186 template: .docker/Dockerfile-cumulus.j2187 output_file: .docker/Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml188 variables: |189 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}190 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}191192 - name: Check if the dockerhub repository contains the needed CUMULUS version193 run: | 194 # Get TAGS from DOCKERHUB repository195 CUMULUS_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-cumulus/tags/?page_size=100 | jq -r '."results"[]["name"]')196 # Show TAGS197 echo "CUMULUS TAGS:"198 echo $CUMULUS_TAGS199 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS200 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then201 echo "Repository has needed CUMULUS version";202 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}203 else204 echo "Repository has not needed CUMULUS version, so build it";205 cd .docker/ && docker build --no-cache --file ./Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml --tag uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }} .206 echo "Push needed CUMULUS version to the repository";207 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}208 fi209 shell: bash210211212 # Build main image for XCM 213 - name: Generate ENV related extend Dockerfile file214 uses: cuchi/jinja2-action@v1.2.0215 with:216 template: .docker/Dockerfile-xcm.j2217 output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml218 variables: |219 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}220 NETWORK=${{ matrix.network }}221 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}222 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}223 FEATURE=${{ matrix.features }}224 RUNTIME=${{ matrix.runtime }}225 BRANCH=${{ github.head_ref }}226 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}227 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}228 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}229230 - name: Show build Dockerfile231 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml232233 - name: Show launch-config-xcm-${{ matrix.network }} configuration234 run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json235236 - name: Run find-and-replace to remove slashes from branch name237 uses: mad9000/actions-find-and-replace-string@2238 id: branchname239 with:240 source: ${{ github.head_ref }}241 find: '/'242 replace: '-'243244 - name: Pull chainql docker image245 run: docker pull uniquenetwork/builder-chainql:latest246247 - name: Build the stack248 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .249250 - name: Push docker image version251 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }}252253 - name: Push docker image latest254 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest255256 - name: Clean Workspace257 if: always()258 uses: AutoModality/action-clean@v1.1.0259260 - name: Remove builder cache261 if: always() # run this step always262 run: |263 docker builder prune -f264 docker system prune -f2652662671name: xcm-testnet-build23# Controls when the action will run.4on:5 workflow_call:6 7 # Allows you to run this workflow manually from the Actions tab8 workflow_dispatch:910#Define Workflow variables11env:12 REPO_URL: ${{ github.server_url }}/${{ github.repository }}1314# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:1617 prepare-execution-marix:1819 name: Prepare execution matrix2021 runs-on: [XL]22 outputs:23 matrix: ${{ steps.create_matrix.outputs.matrix }}2425 steps:2627 - name: Clean Workspace28 uses: AutoModality/action-clean@v1.1.02930 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it31 - uses: actions/checkout@v332 with:33 ref: ${{ github.head_ref }} #Checking out head commit3435 - name: Read .env file36 uses: xom9ikk/dotenv@v1.0.23738 - name: Create Execution matrix39 uses: fabiocaccamo/create-matrix-action@v240 id: create_matrix41 with:42 matrix: |43 network {opal}, runtime {opal}, features {opal-runtime}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.WESTMINT_BUILD_BRANCH }}}44 network {quartz}, runtime {quartz}, features {quartz-runtime}, acala_version {${{ env.KARURA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONRIVER_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINE_BUILD_BRANCH }}}45 network {unique}, runtime {unique}, features {unique-runtime}, acala_version {${{ env.ACALA_BUILD_BRANCH }}}, moonbeam_version {${{ env.MOONBEAM_BUILD_BRANCH }}}, cumulus_version {${{ env.STATEMINT_BUILD_BRANCH }}}4647 xcm-build:48 49 needs: prepare-execution-marix50 # The type of runner that the job will run on51 runs-on: [XL]5253 timeout-minutes: 6005455 name: ${{ matrix.network }}5657 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5859 strategy:60 matrix:61 include: ${{fromJson(needs.prepare-execution-marix.outputs.matrix)}}6263 steps:64 - name: Skip if pull request is in Draft65 if: github.event.pull_request.draft == true66 run: exit 16768 - name: Clean Workspace69 uses: AutoModality/action-clean@v1.1.07071 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it72 - uses: actions/checkout@v373 with:74 ref: ${{ github.head_ref }} #Checking out head commit7576 - name: Read .env file77 uses: xom9ikk/dotenv@v1.0.27879 - name: Log in to Docker Hub80 uses: docker/login-action@v2.0.081 with:82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}8485 - name: Install jq86 run: sudo apt install jq -y8788 # - name: Get autorization token from DOCKERHUB89 # run: | 90 # # aquire token91 # TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)92 # export TOKEN=$TOKEN9394 # Check POLKADOT version and build it if it doesn't exist in repository95 - name: Generate ENV related extend Dockerfile file for POLKADOT96 uses: cuchi/jinja2-action@v1.2.097 with:98 template: .docker/Dockerfile-polkadot.j299 output_file: .docker/Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml100 variables: |101 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}102 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}103104 - name: Check if the dockerhub repository contains the needed version POLKADOT105 run: |106 # aquire token107 TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d '{"username": "'${{ secrets.CORE_DOCKERHUB_USERNAME }}'", "password": "'${{ secrets.CORE_DOCKERHUB_TOKEN }}'"}' https://hub.docker.com/v2/users/login/ | jq -r .token)108 export TOKEN=$TOKEN109110 # Get TAGS from DOCKERHUB POLKADOT repository111 POLKADOT_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-polkadot/tags/?page_size=100 | jq -r '."results"[]["name"]')112 # Show TAGS113 echo "POLKADOT TAGS:"114 echo $POLKADOT_TAGS115 # Check correct version POLKADOT and build it if it doesn't exist in POLKADOT TAGS116 if [[ ${POLKADOT_TAGS[*]} =~ (^|[[:space:]])"${{ env.POLKADOT_BUILD_BRANCH }}"($|[[:space:]]) ]]; then117 echo "Repository has needed POLKADOT version";118 docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}119 else120 echo "Repository has not needed POLKADOT version, so build it";121 cd .docker/ && docker build --no-cache --file ./Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml --tag uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }} .122 echo "Push needed POLKADOT version to the repository";123 docker push uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}124 fi125 shell: bash126127 # Check ACALA version and build it if it doesn't exist in repository128 - name: Generate ENV related extend Dockerfile file for ACALA129 uses: cuchi/jinja2-action@v1.2.0130 with:131 template: .docker/Dockerfile-acala.j2132 output_file: .docker/Dockerfile-acala.${{ matrix.acala_version }}.yml133 variables: |134 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}135 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}136137 - name: Check if the dockerhub repository contains the needed ACALA version138 run: | 139 # Get TAGS from DOCKERHUB repository140 ACALA_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-acala/tags/?page_size=100 | jq -r '."results"[]["name"]')141 # Show TAGS142 echo "ACALA TAGS:"143 echo $ACALA_TAGS144 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS145 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then146 echo "Repository has needed ACALA version";147 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}148 else149 echo "Repository has not needed ACALA version, so build it";150 cd .docker/ && docker build --no-cache --file ./Dockerfile-acala.${{ matrix.acala_version }}.yml --tag uniquenetwork/builder-acala:${{ matrix.acala_version }} .151 echo "Push needed ACALA version to the repository";152 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}153 fi154 shell: bash155156 # Check MOONBEAM version and build it if it doesn't exist in repository157 - name: Generate ENV related extend Dockerfile file for MOONBEAM158 uses: cuchi/jinja2-action@v1.2.0159 with:160 template: .docker/Dockerfile-moonbeam.j2161 output_file: .docker/Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml162 variables: |163 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}164 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}165166 - name: Check if the dockerhub repository contains the needed MOONBEAM version167 run: | 168 # Get TAGS from DOCKERHUB repository169 MOONBEAM_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-moonbeam/tags/?page_size=100 | jq -r '."results"[]["name"]')170 # Show TAGS171 echo "MOONBEAM TAGS:"172 echo $MOONBEAM_TAGS173 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS174 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then175 echo "Repository has needed MOONBEAM version";176 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}177 else178 echo "Repository has not needed MOONBEAM version, so build it";179 cd .docker/ && docker build --no-cache --file ./Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml --tag uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }} .180 echo "Push needed MOONBEAM version to the repository";181 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}182 fi183 shell: bash184185186 # Check CUMULUS version and build it if it doesn't exist in repository187 - name: Generate ENV related extend Dockerfile file for CUMULUS188 uses: cuchi/jinja2-action@v1.2.0189 with:190 template: .docker/Dockerfile-cumulus.j2191 output_file: .docker/Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml192 variables: |193 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}194 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}195196 - name: Check if the dockerhub repository contains the needed CUMULUS version197 run: | 198 # Get TAGS from DOCKERHUB repository199 CUMULUS_TAGS=$(curl -s -H "Authorization: JWT ${TOKEN}" https://hub.docker.com/v2/repositories/uniquenetwork/builder-cumulus/tags/?page_size=100 | jq -r '."results"[]["name"]')200 # Show TAGS201 echo "CUMULUS TAGS:"202 echo $CUMULUS_TAGS203 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS204 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then205 echo "Repository has needed CUMULUS version";206 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}207 else208 echo "Repository has not needed CUMULUS version, so build it";209 cd .docker/ && docker build --no-cache --file ./Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml --tag uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }} .210 echo "Push needed CUMULUS version to the repository";211 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}212 fi213 shell: bash214215216 # Build main image for XCM 217 - name: Generate ENV related extend Dockerfile file218 uses: cuchi/jinja2-action@v1.2.0219 with:220 template: .docker/Dockerfile-xcm.j2221 output_file: .docker/Dockerfile-xcm.${{ matrix.network }}.yml222 variables: |223 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}224 NETWORK=${{ matrix.network }}225 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}226 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}227 FEATURE=${{ matrix.features }}228 RUNTIME=${{ matrix.runtime }}229 BRANCH=${{ github.head_ref }}230 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}231 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}232 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}233234 - name: Show build Dockerfile235 run: cat .docker/Dockerfile-xcm.${{ matrix.network }}.yml236237 - name: Show launch-config-xcm-${{ matrix.network }} configuration238 run: cat .docker/xcm-config/launch-config-xcm-${{ matrix.network }}.json239240 - name: Run find-and-replace to remove slashes from branch name241 uses: mad9000/actions-find-and-replace-string@2242 id: branchname243 with:244 source: ${{ github.head_ref }}245 find: '/'246 replace: '-'247248 - name: Pull chainql docker image249 run: docker pull uniquenetwork/builder-chainql:latest250251 - name: Build the stack252 run: cd .docker/ && docker build --no-cache --file ./Dockerfile-xcm.${{ matrix.network }}.yml --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }} --tag uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest .253254 - name: Push docker image version255 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:nightly-${{ steps.branchname.outputs.value }}-${{ github.sha }}256257 - name: Push docker image latest258 run: docker push uniquenetwork/xcm-${{ matrix.network }}-testnet-local:latest259260 - name: Clean Workspace261 if: always()262 uses: AutoModality/action-clean@v1.1.0263264 - name: Remove builder cache265 if: always() # run this step always266 run: |267 docker builder prune -f268 docker system prune -f269270271