From 7911d8f187035cc78c1c498401c4a3e316f5998e Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Thu, 14 May 2026 11:56:07 +0200 Subject: [PATCH] pipeline: tryfix helm push authentication --- .gitea/workflows/pipeline.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 8698f9b..2ae2bf8 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -68,4 +68,6 @@ jobs: echo "Uploading chart to Gitea registry..." echo "User: ${{ github.actor }}" echo "URL: https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts" - curl --fail -v --user "${{ github.actor }}:${{ secrets.PACKAGES_TOKEN }}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts" + # Trim any trailing newline from the token + TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') + curl --fail -v --user "${{ github.actor }}:${TOKEN}" -X POST --upload-file vhaudiquet-fr-*.tgz "https://git.vhaudiquet.fr/api/packages/vhaudiquet/helm/api/charts"