Skip to content
Snippets Groups Projects
Verified Commit bc4e937d authored by Martin Weise's avatar Martin Weise
Browse files
parent ecb28166
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,7 @@ lint-helm-chart: ...@@ -78,6 +78,7 @@ lint-helm-chart:
stage: lint stage: lint
before_script: before_script:
- apk --no-cache add helm git bash - apk --no-cache add helm git bash
- cp ./helm/dbrepo/values.schema.json ./CI_values.schema.json
- helm plugin install https://github.com/losisin/helm-values-schema-json.git - 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
...@@ -86,19 +87,19 @@ lint-helm-chart: ...@@ -86,19 +87,19 @@ lint-helm-chart:
- bash .scripts/check-helm.sh - bash .scripts/check-helm.sh
- helm lint ./helm/dbrepo - helm lint ./helm/dbrepo
- helm schema -input ./helm/dbrepo/values.yaml -output ./helm/dbrepo/values.schema.json - helm schema -input ./helm/dbrepo/values.yaml -output ./helm/dbrepo/values.schema.json
- diff ./values.schema.json ./helm/dbrepo/values.schema.json - diff ./CI_values.schema.json ./helm/dbrepo/values.schema.json
lint-helm-readme: lint-helm-readme:
image: docker.io/node:${NODE_VERSION}-alpine${ALPINE_VERSION} image: docker.io/node:${NODE_VERSION}-alpine${ALPINE_VERSION}
stage: lint stage: lint
before_script: before_script:
- apk --no-cache add alpine-sdk bash git - apk --no-cache add alpine-sdk bash git
- cp ./helm/dbrepo/README.md ./CI_README.md
- git clone https://github.com/bitnami/readme-generator-for-helm - git clone https://github.com/bitnami/readme-generator-for-helm
- cd ./readme-generator-for-helm - cd ./readme-generator-for-helm
- npm install - npm install
- npm install -g pkg - npm install -g pkg
- pkg . -o readme-generator - pkg . -o readme-generator
- cp ./helm/dbrepo/README.md ./CI_README.md
script: script:
- ./readme-generator --readme ./CI_README.md --values ./helm/dbrepo/values.yaml - ./readme-generator --readme ./CI_README.md --values ./helm/dbrepo/values.yaml
- diff ./CI_README.md ./helm/dbrepo/README.md - diff ./CI_README.md ./helm/dbrepo/README.md
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment