feat: dynamically add chart dependencies

This commit is contained in:
2023-03-01 15:44:04 +03:00
parent 02243d8556
commit 3a6874c574

View File

@ -1,6 +1,6 @@
#!/bin/sh
helm lint .
helm lint --strict .
export HELM_REPO_USERNAME="$PLUGIN_USERNAME"
export HELM_REPO_PASSWORD="$PLUGIN_PASSWORD"
@ -23,8 +23,7 @@ new_version=$(semver bump "$bump" "$previousVersion")
yq -i '.version = "'"$new_version"'"' Chart.yaml
# TODO add dependencies dynamically
helm repo add bitnami https://charts.bitnami.com/bitnami
eval "$(yq -o=j -I=0 '.dependencies[]' Chart.yaml | yq '"helm repo add " + .name + " " + .repository' -)"
helm dependency build
helm cm-push . "$repo"