fix: move deps and lint after current repo add
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-03 21:17:46 +03:00
parent 6e2cd90434
commit f79636f064

View File

@ -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"