2019-11-06 08:08:17 +11:00
#!/bin/bash
2021-05-21 15:03:28 +02: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-06 08:08:17 +11:00
set -eux
SRCROOT = " $( cd " $( dirname " $0 " ) /.. " && pwd ) "
2021-05-21 15:03:28 +02:00
echo -e "\n-- Linting all Helm Charts --\n"
docker run \
-v " $SRCROOT :/workdir " \
--entrypoint /bin/sh \
2023-10-31 12:21:05 -05:00
quay.io/helmpack/chart-testing:v3.10.0 \
2021-08-17 03:30:43 -04:00
-c cd /workdir \
2021-05-21 15:03:28 +02:00
ct lint \
2021-05-21 17:59:30 +02:00
--config .github/configs/ct-lint.yaml \
--lint-conf .github/configs/lintconf.yaml \
2021-05-21 15:03:28 +02:00
--debug