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