2019-11-05 21:08:17 +00:00
#!/bin/bash
2021-05-21 13:03:28 +00:00
# This script runs the chart-testing tool locally. It simulates the linting that is also done by the github action. Run this without any errors before pushing.
# Reference: https://github.com/helm/chart-testing
2019-11-05 21:08:17 +00:00
set -eux
SRCROOT = " $( cd " $( dirname " $0 " ) /.. " && pwd ) "
2021-05-21 13:03:28 +00:00
echo -e "\n-- Linting all Helm Charts --\n"
docker run \
-v " $SRCROOT :/workdir " \
--entrypoint /bin/sh \
2023-10-31 17:21:05 +00:00
quay.io/helmpack/chart-testing:v3.10.0 \
2021-08-17 07:30:43 +00:00
-c cd /workdir \
2021-05-21 13:03:28 +00:00
ct lint \
2021-05-21 15:59:30 +00:00
--config .github/configs/ct-lint.yaml \
--lint-conf .github/configs/lintconf.yaml \
2021-05-21 13:03:28 +00:00
--debug