Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
894c39b0cd
|
|||
6c326e0aa5
|
12
script.sh
12
script.sh
@ -2,11 +2,9 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export HELM_REPO_USERNAME="$PLUGIN_USERNAME"
|
REGISTRY_HOST=harbor.grachevko.ru
|
||||||
export HELM_REPO_PASSWORD="$PLUGIN_PASSWORD"
|
REGISTRY=${PLUGIN_REGISTRY:-"oci://$REGISTRY_HOST/"}
|
||||||
|
repo="$REGISTRY/$DRONE_REPO_OWNER/chart"
|
||||||
REGISTRY=${PLUGIN_REGISTRY:-"oci://harbor.grachevko.ru/"}
|
|
||||||
repo="$REGISTRY/$DRONE_REPO_OWNER/chart/$PLUGIN_NAME"
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
helm dependency update
|
helm dependency update
|
||||||
@ -14,7 +12,9 @@ helm dependency update
|
|||||||
# Lint
|
# Lint
|
||||||
helm lint --strict .
|
helm lint --strict .
|
||||||
|
|
||||||
helm package --version "${PLUGIN_TAG}"
|
helm package --version "${PLUGIN_TAG}" .
|
||||||
|
|
||||||
|
echo "$PLUGIN_PASSWORD" | helm registry login "$REGISTRY_HOST" --username "$PLUGIN_USERNAME" --password-stdin
|
||||||
|
|
||||||
# Push new version
|
# Push new version
|
||||||
helm push ./*.tgz "$repo"
|
helm push ./*.tgz "$repo"
|
||||||
|
Reference in New Issue
Block a user