Skip to content
Snippets Groups Projects
Verified Commit f1ed7b2e authored by Martin Weise's avatar Martin Weise
Browse files
parent db958def
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ lint-docker-compose: ...@@ -50,6 +50,7 @@ lint-docker-compose:
- 'wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq' - 'wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq && chmod +x /usr/bin/yq'
- 'ls -la .scripts' - 'ls -la .scripts'
script: script:
- "bash .scripts/check-compose.sh"
- "yq compare -P docker-compose.yml .docker/docker-compose.yml 'volumes.*'" - "yq compare -P docker-compose.yml .docker/docker-compose.yml 'volumes.*'"
- "IGNORE_IMAGE=1 IGNORE_PORTS=1 bash .scripts/check-service.sh 'dbrepo-analyse-service'" - "IGNORE_IMAGE=1 IGNORE_PORTS=1 bash .scripts/check-service.sh 'dbrepo-analyse-service'"
- "bash .scripts/check-service.sh 'dbrepo-auth-db'" - "bash .scripts/check-service.sh 'dbrepo-auth-db'"
...@@ -75,12 +76,22 @@ lint-helm-chart: ...@@ -75,12 +76,22 @@ lint-helm-chart:
image: docker.io/alpine:${ALPINE_VERSION} image: docker.io/alpine:${ALPINE_VERSION}
stage: lint stage: lint
before_script: before_script:
- apk add helm - apk --no-cache add helm
- helm plugin install https://github.com/losisin/helm-values-schema-json.git
- helm dependency update ./helm/seaweedfs - helm dependency update ./helm/seaweedfs
- helm package ./helm/seaweedfs --destination ./build - helm package ./helm/seaweedfs --destination ./build
- helm dependency update ./helm/dbrepo - helm dependency update ./helm/dbrepo
- ./.scripts/check-helm.sh
script: script:
- helm lint ./helm/dbrepo - helm lint ./helm/dbrepo
- diff ./values.schema.json ./helm/dbrepo/values.schema.json
- diff ./README.md ./helm/dbrepo/README.md
lint-metadata-schema:
image: docker.io/alpine:${ALPINE_VERSION}
stage: lint
script:
- diff dbrepo-metadata-db/1_setup-schema.sql helm/dbrepo/files/01-setup-schema.sql
build-metadata-service: build-metadata-service:
image: maven:3-openjdk-${JAVA_VERSION} image: maven:3-openjdk-${JAVA_VERSION}
......
#!/bin/bash
OUTPUT=$(cat .docker/docker-compose.yml | grep "registry.datalab.tuwien.ac.at/.*" | grep -v "$APP_VERSION")
if [ $? -ne 1 ]; then
echo "[ERROR] Some image version(s) differ from APP_VERSION=${APP_VERSION}: ${OUTPUT}"
exit 1
fi
\ No newline at end of file
...@@ -4,3 +4,8 @@ if [ $? -ne 0 ]; then ...@@ -4,3 +4,8 @@ if [ $? -ne 0 ]; then
echo "!!! Please install the Helm values schema plugin first\n" echo "!!! Please install the Helm values schema plugin first\n"
echo " https://github.com/losisin/helm-values-schema-json" echo " https://github.com/losisin/helm-values-schema-json"
fi fi
OUTPUT=$(cat helm/dbrepo/values.yaml | grep "registry.datalab.tuwien.ac.at/.*" | grep -v "$APP_VERSION")
if [ $? -ne 1 ]; then
echo "[ERROR] Some image version(s) differ from APP_VERSION=${APP_VERSION} in Helm Char: ${OUTPUT}"
exit 1
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment