20 lines
505 B
Bash
Executable File
20 lines
505 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
|
|
do
|
|
rm -rf $dir/charts
|
|
name=$(basename $dir)
|
|
echo "Running Helm linting for $name"
|
|
docker run \
|
|
-v "$SRCROOT:/workdir" \
|
|
gcr.io/kubernetes-charts-ci/test-image:v3.1.0 \
|
|
ct \
|
|
lint \
|
|
--config .circleci/chart-testing.yaml \
|
|
--lint-conf .circleci/lintconf.yaml \
|
|
--charts "/workdir/charts/${name}"
|
|
done
|