ci: authenticate Helm push to Gitea with access token instead of password

This commit is contained in:
2026-10-08 18:34:28 +02:00
parent a1da7648b1
commit 857a32ec3d
+5 -3
View File
@@ -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: