From 857a32ec3dad479ee1149ae4e3d1b9831b05fa38 Mon Sep 17 00:00:00 2001 From: "noussair.hamrit" Date: Thu, 8 Oct 2026 18:34:28 +0200 Subject: [PATCH] ci: authenticate Helm push to Gitea with access token instead of password --- .gitlab-ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 62f2596..02381ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,12 +49,14 @@ push_chart_to_gitea: name: alpine/helm:3.14.0 entrypoint: [""] variables: - GITEA_URL: "https://gitea.infrastructure.helmholz.cloud" + GITEA_HOST: "gitea.infrastructure.helmholz.cloud" GITEA_USERNAME: "gitea_admin" - GITEA_PASSWORD: "$GITEA_PASSWORD" script: - - echo "$GITEA_PASSWORD" | helm registry login $GITEA_URL --username $GITEA_USERNAME --password-stdin + - echo "$GITEA_TOKEN" | helm registry login "$GITEA_HOST" --username "$GITEA_USERNAME" --password-stdin - helm push ${PACKAGE_PATH}/${CHART_NAME}-${CHART_VERSION}.tgz $GITEA_REPO + after_script: + - helm registry logout "$GITEA_HOST" || true + when: manual only: - main dependencies: