diff --git a/script.sh b/script.sh index 11f10a7..bef67e3 100755 --- a/script.sh +++ b/script.sh @@ -2,13 +2,6 @@ set -e -# Dependencies -eval "$(yq -o=j -I=0 '.dependencies[]' Chart.yaml | yq '"helm repo add " + .name + " " + .repository' -)" -helm dependency build - -# Lint -helm lint --strict . - # Add current repo export HELM_REPO_USERNAME="$PLUGIN_USERNAME" export HELM_REPO_PASSWORD="$PLUGIN_PASSWORD" @@ -18,6 +11,13 @@ repo="$REGISTRY"/"$REPO" helm repo add "$REPO" "$repo" +# Dependencies +eval "$(yq -o=j -I=0 '.dependencies[]' Chart.yaml | yq '"helm repo add " + .name + " " + .repository' -)" +helm dependency build + +# Lint +helm lint --strict . + # Bump version previousVersion=$(helm search repo "$REPO" -o yaml | yq '.[0].version') bump="patch"