only try helm template values.yaml if ci/*values.yaml does not exist

This commit is contained in:
Stavros Kois
2023-06-28 00:20:05 +03:00
committed by GitHub
parent e5a33f9638
commit 6ec89831f4
+4 -2
View File
@@ -147,8 +147,10 @@ function lint_chart(){
echo "👣 Helm Lint - [$chart_path]"
helm_lint "$chart_path"
echo "👣 Helm Template - [$chart_path]"
helm_template "$chart_path"
if [[ ! $(ls $chart_path/ci/*values.yaml) ]]; then
echo "👣 Helm Template - [$chart_path]"
helm_template "$chart_path"
fi
for values in $chart_path/ci/*values.yaml; do
if [ -f "${values}" ]; then