Add helm linting step to gitlab-ci

This commit is contained in:
Luke 2022-02-03 03:52:17 +00:00
parent 1f3003a1e0
commit 9546dcbafb

View File

@ -9,12 +9,24 @@ variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
stages: stages:
- test - lint_python
- lint_helm
- deploy - 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: lint_python_on_merge_request:
image: python:alpine image: python:alpine
stage: test stage: lint_python
script: script:
- echo "Linting Python code" - echo "Linting Python code"
- pip install --upgrade -q pip && pip install -q black && black --fast --check . - pip install --upgrade -q pip && pip install -q black && black --fast --check .