reverted last commit and made it work with the current image name

This commit is contained in:
Micha Gläß-Stöcker 2021-06-29 12:46:40 +02:00
parent ab4dea4138
commit d0ea817ec2

View file

@ -17,8 +17,8 @@ build:
script:
- >
apk add --no-cache jq;
LATEST_MINIO_GITHUB=x$(wget --quiet "https://api.github.com/repos/minio/minio/releases/latest" -O - | jq -r '.tag_name');
LATEST_MINIO_DHUB=$(wget -q https://registry.hub.docker.com/v1/repositories/egon0/minio-multiarch/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | tail -n1);
LATEST_MINIO_GITHUB=$(wget --quiet "https://api.github.com/repos/minio/minio/releases/latest" -O - | jq -r '.tag_name');
LATEST_MINIO_DHUB=$(wget -q https://registry.hub.docker.com/v1/repositories/$D_IMAGE_TAG/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}' | tail -n1);
if [ "$LATEST_MINIO_GITHUB" != "$LATEST_MINIO_DHUB" ]
then
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY