git.delta.rocks / unique-network / refs/commits / 43324b61b1fb

difftreelog

fix xcm workflow

Konstantin Astakhov2022-09-09parent: #b023ed9.patch.diff
in: master

1 file changed

modified.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth
135 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}135 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}
136136
137 - name: Check if the dockerhub repository contains the needed ACALA version137 - name: Check if the dockerhub repository contains the needed ACALA version
138 run: | 138 run: |
139 # aquire token
140 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)
141 export TOKEN=$TOKEN
142
139 # Get TAGS from DOCKERHUB repository143 # Get TAGS from DOCKERHUB repository
140 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"]')144 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 TAGS145 # Show TAGS
142 echo "ACALA TAGS:"146 echo "ACALA TAGS:"
143 echo $ACALA_TAGS147 echo $ACALA_TAGS
144 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS148 # Check correct version ACALA and build it if it doesn't exist in ACALA TAGS
145 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then149 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then
146 echo "Repository has needed ACALA version";150 echo "Repository has needed ACALA version";
147 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}151 docker pull uniquenetwork/builder-acala:${{ matrix.acala_version }}
148 else152 else
149 echo "Repository has not needed ACALA version, so build it";153 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 }} .154 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";155 echo "Push needed ACALA version to the repository";
152 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}156 docker push uniquenetwork/builder-acala:${{ matrix.acala_version }}
153 fi157 fi
154 shell: bash158 shell: bash
155159
156 # Check MOONBEAM version and build it if it doesn't exist in repository160 # Check MOONBEAM version and build it if it doesn't exist in repository
164 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}168 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}
165169
166 - name: Check if the dockerhub repository contains the needed MOONBEAM version170 - name: Check if the dockerhub repository contains the needed MOONBEAM version
167 run: | 171 run: |
172 # aquire token
173 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)
174 export TOKEN=$TOKEN
175
168 # Get TAGS from DOCKERHUB repository176 # Get TAGS from DOCKERHUB repository
169 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"]')177 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 TAGS178 # Show TAGS
171 echo "MOONBEAM TAGS:"179 echo "MOONBEAM TAGS:"
172 echo $MOONBEAM_TAGS180 echo $MOONBEAM_TAGS
173 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS181 # Check correct version MOONBEAM and build it if it doesn't exist in MOONBEAM TAGS
174 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then182 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then
175 echo "Repository has needed MOONBEAM version";183 echo "Repository has needed MOONBEAM version";
176 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}184 docker pull uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}
177 else185 else
178 echo "Repository has not needed MOONBEAM version, so build it";186 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 }} .187 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";188 echo "Push needed MOONBEAM version to the repository";
181 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}189 docker push uniquenetwork/builder-moonbeam:${{ matrix.moonbeam_version }}
182 fi190 fi
183 shell: bash191 shell: bash
184192
185193
194 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}202 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}
195203
196 - name: Check if the dockerhub repository contains the needed CUMULUS version204 - name: Check if the dockerhub repository contains the needed CUMULUS version
197 run: | 205 run: |
198 # Get TAGS from DOCKERHUB repository206 # aquire token
207 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)
208 export TOKEN=$TOKEN
209
210 # Get TAGS from DOCKERHUB repository
199 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"]')211 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 TAGS212 # Show TAGS
201 echo "CUMULUS TAGS:"213 echo "CUMULUS TAGS:"
202 echo $CUMULUS_TAGS214 echo $CUMULUS_TAGS
203 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS215 # Check correct version CUMULUS and build it if it doesn't exist in CUMULUS TAGS
204 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then216 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then
205 echo "Repository has needed CUMULUS version";217 echo "Repository has needed CUMULUS version";
206 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}218 docker pull uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}
207 else219 else
208 echo "Repository has not needed CUMULUS version, so build it";220 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 }} .221 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";222 echo "Push needed CUMULUS version to the repository";
211 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}223 docker push uniquenetwork/builder-cumulus:${{ matrix.cumulus_version }}
212 fi224 fi
213 shell: bash225 shell: bash
214226
215227