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