diff --git a/docs/.gitlab-ci.yaml b/docs/.gitlab-ci.yaml index bf4d768447b49da03327f2528fb7a0240994c3b4..02fa9667882f59023b29df77540a18d3a281e01a 100644 --- a/docs/.gitlab-ci.yaml +++ b/docs/.gitlab-ci.yaml @@ -3,8 +3,17 @@ stages: lint-docs: extends: .earthly + stage: lint script: - earthly --ci +docs-lint + rules: + - if: '$FORCE_DOCS_BUILD == "true"' + - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "push"' + changes: + paths: + - docs/**/* + - images/**/README.md + - charts/**/README.md build-docs: stage: build