Some checks reported errors
continuous-integration/drone/push Build was killed
24 lines
473 B
Bash
Executable File
24 lines
473 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export HELM_REPO_USERNAME=""
|
|
export HELM_REPO_PASSWORD=""
|
|
|
|
REGISTRY_HOST=harbor.grachevko.ru
|
|
REGISTRY=${PLUGIN_REGISTRY:-"oci://$REGISTRY_HOST/"}
|
|
repo="$REGISTRY/$DRONE_REPO_OWNER/chart"
|
|
|
|
# Dependencies
|
|
helm dependency update
|
|
|
|
# Lint
|
|
helm lint --strict .
|
|
|
|
helm package --version "${PLUGIN_TAG}" .
|
|
|
|
echo "$PLUGIN_PASSWORD" | helm registry login "$REGISTRY_HOST" --username "$PLUGIN_USERNAME" --password-stdin
|
|
|
|
# Push new version
|
|
helm push ./*.tgz "$repo"
|