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

Really check it

parent 516247bd
No related branches found
No related tags found
1 merge request!400Need assets path
...@@ -696,13 +696,21 @@ verify-dist: ...@@ -696,13 +696,21 @@ verify-dist:
image: docker.io/alpine:${ALPINE_VERSION} image: docker.io/alpine:${ALPINE_VERSION}
stage: verify stage: verify
only: only:
refs: - /^release-.*/
- /^release-.*/ - master
before_script: before_script:
- "apk add curl" - "apk add curl"
script: script:
- "curl -v --output /dev/null --fail https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/${APP_VERSION}/dist.tar.gz" - "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: scan-sonarqube:
image: sonarsource/sonar-scanner-cli:${SONARQUBE_VERSION} image: sonarsource/sonar-scanner-cli:${SONARQUBE_VERSION}
stage: scan stage: scan
......
#!/bin/bash #!/bin/bash
echo "Starting registry check ..." echo "Starting registry check ..."
SUPPORTED_VERSIONS="1.7.3, 1.8.0" if [ -z $SUPPORTED_VERSIONS ]; then
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" echo "[ERROR] Missing environment variable SUPPORTED_VERSIONS" > /dev/stderr
CI_REGISTRY2_URL="registry.datalab.tuwien.ac.at/dbrepo" 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//,/ }) VERSIONS=(${SUPPORTED_VERSIONS//,/ })
SERVICES=(${MAINTAINED_SERVICES//,/ }) SERVICES=(${MAINTAINED_SERVICES//,/ })
......
#!/bin/bash #!/bin/bash
echo "Starting registry housekeeping ..." 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//,/ }) VERSIONS=(${SUPPORTED_VERSIONS//,/ })
SERVICES=(${MAINTAINED_SERVICES//,/ }) SERVICES=(${MAINTAINED_SERVICES//,/ })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment