feat: dynamically add chart dependencies
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user