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:
Niklas Ye
2026-08-19 20:44:06 +02:00
parent 289eca8076
commit ec133c8a8f
+3 -1
View File
@@ -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"