ci: do not override HELM_REPOSITORY_CACHE alongside the config
Helm writes a refreshed repository index to the default cache directory and then looks for it in the overridden one, so setting both is how the chart tooling breaks on this machine already.
This commit is contained in:
@@ -202,8 +202,10 @@ jobs:
|
|||||||
echo "$TOKEN" | helm registry login "$REGISTRY" -u niklas --password-stdin
|
echo "$TOKEN" | helm registry login "$REGISTRY" -u niklas --password-stdin
|
||||||
# Isolated repo config: the machine-wide helm repo list is not this job's
|
# Isolated repo config: the machine-wide helm repo list is not this job's
|
||||||
# business, and one unreachable entry in it aborts otherwise-fine commands.
|
# business, and one unreachable entry in it aborts otherwise-fine commands.
|
||||||
|
# HELM_REPOSITORY_CACHE is deliberately NOT overridden alongside it -- helm
|
||||||
|
# writes a refreshed index to the default cache and then looks for it in the
|
||||||
|
# overridden one.
|
||||||
export HELM_REPOSITORY_CONFIG="$PWD/.helm-repos.yaml"
|
export HELM_REPOSITORY_CONFIG="$PWD/.helm-repos.yaml"
|
||||||
export HELM_REPOSITORY_CACHE="$PWD/.helm-cache"
|
|
||||||
: > "$HELM_REPOSITORY_CONFIG"
|
: > "$HELM_REPOSITORY_CONFIG"
|
||||||
helm package charts/terdut-server -d dist
|
helm package charts/terdut-server -d dist
|
||||||
helm push "dist/terdut-server-${REF_NAME#v}.tgz" "oci://${REGISTRY}/niklas"
|
helm push "dist/terdut-server-${REF_NAME#v}.tgz" "oci://${REGISTRY}/niklas"
|
||||||
|
|||||||
Reference in New Issue
Block a user