Skip to content

Commit 5d44686

Browse files
committed
adding repo add
1 parent eb15c8c commit 5d44686

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/helm-dependency-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
process_chart() {
44
dir="$1"
55
if yq -e '.dependencies[] | select(.repository | match("https://"))' "$dir/Chart.yaml"; then
6+
yq -r '.repositories[] | "helm repo add \(.name) \(.url)"' $dir/helm-repositories.yaml | sh
67
helm dependency build "$dir" --repository-config "$dir/helm-repositories.yaml"
78
else
89
helm dependency build "$dir" --skip-refresh

0 commit comments

Comments
 (0)