git.delta.rocks / unique-network / refs/commits / 882ea0a14b61

difftreelog

Merge branch 'feature/multi-assets-redone' of https://github.com/UniqueNetwork/unique-chain into feature/multi-assets-redone

Dev2022-09-12parents: #a6179b8 #012988d.patch.diff
in: master

16 files changed

added.docker/Dockerfile-acala.j2diffbeforeafterboth

no changes

added.docker/Dockerfile-cumulus.j2diffbeforeafterboth

no changes

added.docker/Dockerfile-moonbeam.j2diffbeforeafterboth

no changes

added.docker/Dockerfile-polkadot.j2diffbeforeafterboth

no changes

deleted.docker/Dockerfile-testnetdiffbeforeafterboth

no changes

deleted.docker/Dockerfile-testnet.j2diffbeforeafterboth

no changes

deleted.docker/Dockerfile-xcmdiffbeforeafterboth

no changes

deleted.docker/docker-compose-testnet.ymldiffbeforeafterboth

no changes

deleted.docker/docker-compose-xcm.ymldiffbeforeafterboth

no changes

deleted.docker/docker-compose.tmp-testnet.j2diffbeforeafterboth

no changes

deleted.docker/docker-compose.tmp-xcm-quartz.ymldiffbeforeafterboth

no changes

deleted.docker/docker-compose.tmp-xcm-unique.ymldiffbeforeafterboth

no changes

deleted.docker/docker-compose.tmp-xcm.j2diffbeforeafterboth

no changes

deleted.docker/testnet-config/launch-config-testnet.jsondiffbeforeafterboth

no changes

modified.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth
76 - name: Read .env file76 - name: Read .env file
77 uses: xom9ikk/dotenv@v1.0.277 uses: xom9ikk/dotenv@v1.0.2
7878
79 - name: Log in to Docker Hub
80 uses: docker/login-action@v2.0.0
81 with:
82 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
83 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
84
85 - name: Install jq
86 run: sudo apt install jq -y
87
88 # Check POLKADOT version and build it if it doesn't exist in repository
89 - name: Generate ENV related extend Dockerfile file for POLKADOT
90 uses: cuchi/jinja2-action@v1.2.0
91 with:
92 template: .docker/Dockerfile-polkadot.j2
93 output_file: .docker/Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml
94 variables: |
95 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
96 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
97
98 - name: Check if the dockerhub repository contains the needed version POLKADOT
99 run: |
100 # aquire token
101 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)
102 export TOKEN=$TOKEN
103
104 # Get TAGS from DOCKERHUB POLKADOT repository
105 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"]')
106 # Show TAGS
107 echo "POLKADOT TAGS:"
108 echo $POLKADOT_TAGS
109 # Check correct version POLKADOT and build it if it doesn't exist in POLKADOT TAGS
110 if [[ ${POLKADOT_TAGS[*]} =~ (^|[[:space:]])"${{ env.POLKADOT_BUILD_BRANCH }}"($|[[:space:]]) ]]; then
111 echo "Repository has needed POLKADOT version";
112 docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}
113 else
114 echo "Repository has not needed POLKADOT version, so build it";
115 cd .docker/ && docker build --no-cache --file ./Dockerfile-polkadot.${{ env.POLKADOT_BUILD_BRANCH }}.yml --tag uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }} .
116 echo "Push needed POLKADOT version to the repository";
117 docker push uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}
118 fi
119 shell: bash
120
121 # Check ACALA version and build it if it doesn't exist in repository
122 - name: Generate ENV related extend Dockerfile file for ACALA
123 uses: cuchi/jinja2-action@v1.2.0
124 with:
125 template: .docker/Dockerfile-acala.j2
126 output_file: .docker/Dockerfile-acala.${{ matrix.acala_version }}.yml
127 variables: |
128 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
129 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}
130
131 - name: Check if the dockerhub repository contains the needed ACALA version
132 run: |
133 # aquire token
134 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)
135 export TOKEN=$TOKEN
136
137 # Get TAGS from DOCKERHUB repository
138 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"]')
139 # Show TAGS
140 echo "ACALA TAGS:"
141 echo $ACALA_TAGS
142 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS
143 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then
144 echo "Repository has needed ACALA version";
145 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}
146 else
147 echo "Repository has not needed ACALA version, so build it";
148 cd .docker/ && docker build --no-cache --file ./Dockerfile-acala.${{ matrix.acala_version }}.yml --tag uniquenetwork/builder-acala:${{ matrix.acala_version }} .
149 echo "Push needed ACALA version to the repository";
150 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}
151 fi
152 shell: bash
153
154 # Check MOONBEAM version and build it if it doesn't exist in repository
155 - name: Generate ENV related extend Dockerfile file for MOONBEAM
156 uses: cuchi/jinja2-action@v1.2.0
157 with:
158 template: .docker/Dockerfile-moonbeam.j2
159 output_file: .docker/Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml
160 variables: |
161 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
162 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}
163
164 - name: Check if the dockerhub repository contains the needed MOONBEAM version
165 run: |
166 # aquire token
167 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)
168 export TOKEN=$TOKEN
169
170 # Get TAGS from DOCKERHUB repository
171 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"]')
172 # Show TAGS
173 echo "MOONBEAM TAGS:"
174 echo $MOONBEAM_TAGS
175 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS
176 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then
177 echo "Repository has needed MOONBEAM version";
178 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}
179 else
180 echo "Repository has not needed MOONBEAM version, so build it";
181 cd .docker/ && docker build --no-cache --file ./Dockerfile-moonbeam.${{ matrix.moonbeam_version }}.yml --tag uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }} .
182 echo "Push needed MOONBEAM version to the repository";
183 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}
184 fi
185 shell: bash
186
187
188 # Check CUMULUS version and build it if it doesn't exist in repository
189 - name: Generate ENV related extend Dockerfile file for CUMULUS
190 uses: cuchi/jinja2-action@v1.2.0
191 with:
192 template: .docker/Dockerfile-cumulus.j2
193 output_file: .docker/Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml
194 variables: |
195 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
196 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}
197
198 - name: Check if the dockerhub repository contains the needed CUMULUS version
199 run: |
200 # aquire token
201 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)
202 export TOKEN=$TOKEN
203
204 # Get TAGS from DOCKERHUB repository
205 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"]')
206 # Show TAGS
207 echo "CUMULUS TAGS:"
208 echo $CUMULUS_TAGS
209 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS
210 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then
211 echo "Repository has needed CUMULUS version";
212 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}
213 else
214 echo "Repository has not needed CUMULUS version, so build it";
215 cd .docker/ && docker build --no-cache --file ./Dockerfile-cumulus.${{ matrix.cumulus_version }}.yml --tag uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }} .
216 echo "Push needed CUMULUS version to the repository";
217 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}
218 fi
219 shell: bash
220
221
222 # Build main image for XCM
79 - name: Generate ENV related extend Dockerfile file223 - name: Generate ENV related extend Dockerfile file
80 uses: cuchi/jinja2-action@v1.2.0224 uses: cuchi/jinja2-action@v1.2.0
81 with:225 with:
107 find: '/'251 find: '/'
108 replace: '-'252 replace: '-'
109
110 - name: Log in to Docker Hub
111 uses: docker/login-action@v2.0.0
112 with:
113 username: ${{ secrets.CORE_DOCKERHUB_USERNAME }}
114 password: ${{ secrets.CORE_DOCKERHUB_TOKEN }}
115
116 - name: Pull acala docker image
117 run: docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}
118
119 - name: Pull moonbeam docker image
120 run: docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}
121
122 - name: Pull cumulus docker image
123 run: docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}
124
125 - name: Pull polkadot docker image
126 run: docker pull uniquenetwork/builder-polkadot:${{ env.POLKADOT_BUILD_BRANCH }}
127253
128 - name: Pull chainql docker image254 - name: Pull chainql docker image
129 run: docker pull uniquenetwork/builder-chainql:latest255 run: docker pull uniquenetwork/builder-chainql:latest
modified.github/workflows/xcm-tests_v2.ymldiffbeforeafterboth
1717
18 name: Prepare execution matrix18 name: Prepare execution matrix
1919
20# needs: [xcm-testnet-build]20 #needs: [xcm-testnet-build]
2121
22 runs-on: XL22 runs-on: XL
23 outputs:23 outputs: