difftreelog
fix xcm workflow
in: master
1 file changed
.github/workflows/xcm-testnet-build.ymldiffbeforeafterboth135 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}135 ACALA_BUILD_BRANCH=${{ matrix.acala_version }}136136137 - name: Check if the dockerhub repository contains the needed ACALA version137 - name: Check if the dockerhub repository contains the needed ACALA version138 run: | 138 run: |139 # aquire token140 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=$TOKEN142139 # Get TAGS from DOCKERHUB repository143 # 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"]')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 TAGS142 echo "ACALA TAGS:"146 echo "ACALA TAGS:"143 echo $ACALA_TAGS147 echo $ACALA_TAGS144 # 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 TAGS145 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then149 if [[ ${ACALA_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.acala_version }}"($|[[:space:]]) ]]; then146 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 else149 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 fi154 shell: bash158 shell: bash155159156 # 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 repository164 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}168 MOONBEAM_BUILD_BRANCH=${{ matrix.moonbeam_version }}165169166 - name: Check if the dockerhub repository contains the needed MOONBEAM version170 - name: Check if the dockerhub repository contains the needed MOONBEAM version167 run: | 171 run: |172 # aquire token173 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=$TOKEN175168 # Get TAGS from DOCKERHUB repository176 # 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"]')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 TAGS171 echo "MOONBEAM TAGS:"179 echo "MOONBEAM TAGS:"172 echo $MOONBEAM_TAGS180 echo $MOONBEAM_TAGS173 # 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 TAGS174 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then182 if [[ ${MOONBEAM_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.moonbeam_version }}"($|[[:space:]]) ]]; then175 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 else178 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 fi183 shell: bash191 shell: bash184192185193194 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}202 CUMULUS_BUILD_BRANCH=${{ matrix.cumulus_version }}195203196 - name: Check if the dockerhub repository contains the needed CUMULUS version204 - name: Check if the dockerhub repository contains the needed CUMULUS version197 run: | 205 run: | 198 # Get TAGS from DOCKERHUB repository206 # aquire token207 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=$TOKEN209210 # 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"]')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 TAGS201 echo "CUMULUS TAGS:"213 echo "CUMULUS TAGS:"202 echo $CUMULUS_TAGS214 echo $CUMULUS_TAGS203 # 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 TAGS204 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then216 if [[ ${CUMULUS_TAGS[*]} =~ (^|[[:space:]])"${{ matrix.cumulus_version }}"($|[[:space:]]) ]]; then205 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 else208 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 fi213 shell: bash225 shell: bash214226215227