fix: move deps and lint after current repo add
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
script.sh
14
script.sh
@ -2,13 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
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
|
# Add current repo
|
||||||
export HELM_REPO_USERNAME="$PLUGIN_USERNAME"
|
export HELM_REPO_USERNAME="$PLUGIN_USERNAME"
|
||||||
export HELM_REPO_PASSWORD="$PLUGIN_PASSWORD"
|
export HELM_REPO_PASSWORD="$PLUGIN_PASSWORD"
|
||||||
@ -18,6 +11,13 @@ repo="$REGISTRY"/"$REPO"
|
|||||||
|
|
||||||
helm repo add "$REPO" "$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
|
# Bump version
|
||||||
previousVersion=$(helm search repo "$REPO" -o yaml | yq '.[0].version')
|
previousVersion=$(helm search repo "$REPO" -o yaml | yq '.[0].version')
|
||||||
bump="patch"
|
bump="patch"
|
||||||
|
Reference in New Issue
Block a user