From b3b0f9db4ce7aeaad50ac7093084d66ffa7fb2ff Mon Sep 17 00:00:00 2001 From: Luke Date: Thu, 3 Feb 2022 03:52:17 +0000 Subject: [PATCH] Add helm linting step to gitlab-ci --- .gitlab-ci.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a367875..5c65edf1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,12 +9,24 @@ variables: DOCKER_DRIVER: overlay2 stages: - - test + - lint_python + - lint_helm - deploy +lint_helm_on_merge_request: + image: alpine/helm + stage: lint_python + script: + - echo "Linting Helm chart" + - helm lint ./helm + rules: + - changes: + - helm/* + + lint_python_on_merge_request: image: python:alpine - stage: test + stage: lint_python script: - echo "Linting Python code" - pip install --upgrade -q pip && pip install -q black && black --fast --check .