Skip to content
Snippets Groups Projects
Commit e15e7e88 authored by Nacho Barrientos's avatar Nacho Barrientos
Browse files

Add CI job to fail if README.md needs to be regenerated

parent 5e81fced
No related branches found
No related tags found
1 merge request!57Use only Helm docs plus other misc fixes
...@@ -7,6 +7,7 @@ include: ...@@ -7,6 +7,7 @@ include:
stages: stages:
- lint - lint
- validate
- test - test
- build - build
- deploy - deploy
...@@ -44,6 +45,17 @@ helm_lint: ...@@ -44,6 +45,17 @@ helm_lint:
- helm dep update . - helm dep update .
- helm lint --strict . - helm lint --strict .
helm_docs_needs_running:
stage: validate
image: registry.cern.ch/docker.io/jnorwood/helm-docs:v1.14.2
rules:
- if: '$CI_COMMIT_TAG'
when: never
- if: $CI_PIPELINE_SOURCE == "push"
script:
- helm-docs -o test.md
- diff -ura test.md README.md
unittest: unittest:
stage: test stage: test
image: registry.cern.ch/docker.io/helmunittest/helm-unittest:3.17.0-0.7.2 image: registry.cern.ch/docker.io/helmunittest/helm-unittest:3.17.0-0.7.2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment