git.delta.rocks / unique-network / refs/commits / d761464a5d15

difftreelog

Merge pull request #497 from UniqueNetwork/CI-42-fork-update-parachain-relay-withdata

Yaroslav Bolyukin2022-08-15parents: #d3674cd #89c7def.patch.diff
in: master

2 files changed

modified.docker/forking/docker-compose.tmp-fork.j2diffbeforeafterboth
10 - "FEATURE={{ FEATURE }}"10 - "FEATURE={{ FEATURE }}"
11 - "RUNTIME={{ RUNTIME }}"11 - "RUNTIME={{ RUNTIME }}"
12 - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"12 - "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
13 - "MAINNET_TAG={{ MAINNET_TAG }}"
14 - "MAINNET_BRANCH={{ MAINNET_BRANCH }}"
15 - "FORK_FROM={{ FORK_FROM }}"13 - "FORK_FROM={{ FORK_FROM }}"
1614
modified.github/workflows/fork-update-withdata.ymldiffbeforeafterboth
21# A workflow run is made up of one or more jobs that can run sequentially or in parallel21# A workflow run is made up of one or more jobs that can run sequentially or in parallel
22jobs:22jobs:
23
24 prepare-execution-marix-fork:
25
26 name: Prepare execution matrix for fork
27
28 runs-on: self-hosted-ci
29 outputs:
30 matrix: ${{ steps.create_matrix.outputs.matrix }}
31 steps:
32
33 - name: Clean Workspace
34 uses: AutoModality/action-clean@v1.1.0
35
36 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37 - uses: actions/checkout@v3
38 with:
39 ref: ${{ github.head_ref }} #Checking out head commit
40
41 - name: Read .env file
42 uses: xom9ikk/dotenv@v1.0.2
43
44 - name: Create Execution matrix
45 uses: fabiocaccamo/create-matrix-action@v2
46 id: create_matrix
47 with:
48 matrix: |
49 network {Opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}, fork_from_address {wss://eu-ws-opal.unique.network:443}
50 network {Quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, fork_from_address {wss://eu-ws-quartz.unique.network:443}
51 network {Unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, fork_from_address {wss://eu-ws.unique.network:443}
52
53
5423
55 fork-update-withdata:24 fork-update-withdata:
56 needs: prepare-execution-marix-fork
57 # The type of runner that the job will run on25 # The type of runner that the job will run on
58 runs-on: self-hosted-ci26 runs-on: self-hosted-ci
5927
6331
64 strategy:32 strategy:
65 matrix:33 matrix:
66 include: ${{fromJson(needs.prepare-execution-marix-fork.outputs.matrix)}}34 include:
35 - network: Opal
36 features: opal-runtime
37 runtime: opal
38 fork_from_address: wss://eu-ws-opal.unique.network:443
39 - network: Quartz
40 features: quartz-runtime
41 runtime: quartz
42 fork_from_address: wss://eu-ws-quartz.unique.network:443
43 - network: Unique
44 features: unique-runtime
45 runtime: unique
46 fork_from_address: wss://eu-ws.unique.network:443
6747
68 steps:48 steps:
69 - name: Skip if pull request is in Draft49 - name: Skip if pull request is in Draft
100 with:80 with:
101 template: .docker/forking/docker-compose.tmp-fork.j281 template: .docker/forking/docker-compose.tmp-fork.j2
102 output_file: .docker/forking/docker-compose.${{ matrix.network }}.yml82 output_file: .docker/forking/docker-compose.${{ matrix.network }}.yml
103 variables: |83 variables: |
104 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git84 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git
105 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}85 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
106 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}86 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
107 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}87 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
108 MAINNET_TAG=${{ matrix.mainnet_tag }}88 FEATURE=${{ matrix.features }}
109 MAINNET_BRANCH=${{ matrix.mainnet_branch }}
110 FEATURE=${{ matrix.features }}89 RUNTIME=${{ matrix.runtime }}
111 RUNTIME=${{ matrix.runtime }}90 BRANCH=${{ github.head_ref }}
112 BRANCH=${{ github.head_ref }}91 FORK_FROM=${{ matrix.fork_from_address }}
113 FORK_FROM=${{ matrix.fork_from_address }}
11492
115 - name: Show build configuration93 - name: Show build configuration
116 run: cat .docker/forking/docker-compose.${{ matrix.network }}.yml94 run: cat .docker/forking/docker-compose.${{ matrix.network }}.yml