diff --git a/.gitlab/remove-unsupported-images.sh b/.gitlab/remove-unsupported-images.sh index 9b51ba3faaf4e3dd79a887a59ed3db899f1aef04..7fb90b75a274bd81dd057f8cd843f7ea98a9b195 100755 --- a/.gitlab/remove-unsupported-images.sh +++ b/.gitlab/remove-unsupported-images.sh @@ -6,8 +6,10 @@ MAINTAINED_SERVICES="analyse-service, auth-service-init, dashboard-service, dash VERSIONS=(${SUPPORTED_VERSIONS//,/ }) SERVICES=(${MAINTAINED_SERVICES//,/ }) +CI_REGISTRY2_URL="registry.datalab.tuwien.ac.at/dbrepo" + for SERVICE in "${SERVICES[@]}"; do - TAGS=$(regctl tag ls "registry.datalab.tuwien.ac.at/dbrepo/${SERVICE}") + TAGS=$(regctl tag ls "${CI_REGISTRY2_URL}/${SERVICE}") TAGS=(${TAGS//\n/ }) for TAG in "${TAGS[@]}"; do if [[ ! "${VERSIONS[*]}" =~ $TAG ]]; then