lint.sh 583 B

1234567891011121314151617
  1. #!/bin/bash
  2. # 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.
  3. # Reference: https://github.com/helm/chart-testing
  4. set -eux
  5. SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
  6. echo -e "\n-- Linting all Helm Charts --\n"
  7. docker run \
  8. -v "$SRCROOT:/workdir" \
  9. --entrypoint /bin/sh \
  10. quay.io/helmpack/chart-testing:v3.10.0 \
  11. -c cd /workdir \
  12. ct lint \
  13. --config .github/configs/ct-lint.yaml \
  14. --lint-conf .github/configs/lintconf.yaml \
  15. --debug