Compare commits
2 Commits
d7e9817869
...
master
Author | SHA1 | Date | |
---|---|---|---|
894c39b0cd
|
|||
6c326e0aa5
|
12
script.sh
12
script.sh
@ -2,11 +2,9 @@
|
||||
|
||||
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"
|
||||
REGISTRY_HOST=harbor.grachevko.ru
|
||||
REGISTRY=${PLUGIN_REGISTRY:-"oci://$REGISTRY_HOST/"}
|
||||
repo="$REGISTRY/$DRONE_REPO_OWNER/chart"
|
||||
|
||||
# Dependencies
|
||||
helm dependency update
|
||||
@ -14,7 +12,9 @@ helm dependency update
|
||||
# Lint
|
||||
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
|
||||
helm push ./*.tgz "$repo"
|
||||
|
Reference in New Issue
Block a user