From 6047d1a9f71788dd4dc32a055fb52066f8c8a49a Mon Sep 17 00:00:00 2001 From: Niklas Ye Date: Wed, 19 Aug 2026 20:44:06 +0200 Subject: [PATCH] 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. --- .gitea/workflows/release.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 574063e..7f56f32 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -202,8 +202,10 @@ jobs: echo "$TOKEN" | helm registry login "$REGISTRY" -u niklas --password-stdin # 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. + # 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_CACHE="$PWD/.helm-cache" : > "$HELM_REPOSITORY_CONFIG" helm package charts/terdut-server -d dist helm push "dist/terdut-server-${REF_NAME#v}.tgz" "oci://${REGISTRY}/niklas"