Files
helm/script.sh
Konstantin Grachev 894c39b0cd
Some checks reported errors
continuous-integration/drone/push Build was killed
Remove unnecessary export
2023-05-18 01:12:04 +03:00

21 lines
414 B
Bash
Executable File

#!/bin/sh
set -e
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"