Skip to content
Snippets Groups Projects
Verified Commit 965ff001 authored by Martin Weise's avatar Martin Weise
Browse files

Really check it

parent 516247bd
Branches
Tags
1 merge request!400Need assets path
......@@ -696,13 +696,21 @@ verify-dist:
image: docker.io/alpine:${ALPINE_VERSION}
stage: verify
only:
refs:
- /^release-.*/
- /^release-.*/
- master
before_script:
- "apk add curl"
script:
- "curl -v --output /dev/null --fail https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/${APP_VERSION}/dist.tar.gz"
verify-images:
image: docker.io/docker:${DOCKER_VERSION}-dind
stage: verify
only:
- master
script:
- bash ./.gitlab/check-unsupported-images.sh
scan-sonarqube:
image: sonarsource/sonar-scanner-cli:${SONARQUBE_VERSION}
stage: scan
......
#!/bin/bash
echo "Starting registry check ..."
SUPPORTED_VERSIONS="1.7.3, 1.8.0"
MAINTAINED_SERVICES="analyse-service, auth-service-init, dashboard-service, dashboard-service-init, data-service, metadata-service, search-db, search-service, search-service-init, storage-service-init, ui"
CI_REGISTRY2_URL="registry.datalab.tuwien.ac.at/dbrepo"
if [ -z $SUPPORTED_VERSIONS ]; then
echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr
exit 1
elif [ -z $MAINTAINED_SERVICES ]; then
echo "[ERROR] Missing environment variable MAINTAINED_SERVICES" > /dev/stderr
exit 1
elif [ -z $CI_REGISTRY2_URL ]; then
echo "[ERROR] Missing environment variable CI_REGISTRY2_URL" > /dev/stderr
exit 1
fi
VERSIONS=(${SUPPORTED_VERSIONS//,/ })
SERVICES=(${MAINTAINED_SERVICES//,/ })
......
#!/bin/bash
echo "Starting registry housekeeping ..."
if [ -z $SUPPORTED_VERSIONS ]; then
echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr
exit 1
elif [ -z $MAINTAINED_SERVICES ]; then
echo "[ERROR] Missing environment variable MAINTAINED_SERVICES" > /dev/stderr
exit 1
elif [ -z $CI_REGISTRY2_URL ]; then
echo "[ERROR] Missing environment variable CI_REGISTRY2_URL" > /dev/stderr
exit 1
fi
VERSIONS=(${SUPPORTED_VERSIONS//,/ })
SERVICES=(${MAINTAINED_SERVICES//,/ })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment