From aab0d0a2ec1ae9c47ab0d93871ef10772100b8ab Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Sat, 28 Nov 2026 12:03:05 +0100 Subject: [PATCH] ci: authenticate package pushes with a repository secret Gitea's job token is not accepted by the container registry. Use the PACKAGES_TOKEN repository secret for the image and chart logins. --- .gitea/workflows/ci.yml | 4 ++-- .gitea/workflows/release.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6cf02fa..1c6c38c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -182,7 +182,7 @@ jobs: with: registry: https://git.vhaudiquet.fr username: ${{ gitea.actor }} - password: ${{ secrets.GITEA_TOKEN }} + password: ${{ secrets.PACKAGES_TOKEN }} - name: Build and push uses: docker/build-push-action@v6 @@ -220,7 +220,7 @@ jobs: - name: Push the chart to the Gitea Helm registry run: | - TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n') + TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') curl --fail --user "${{ gitea.actor }}:${TOKEN}" \ -X POST \ --upload-file rhema-together-*.tgz \ diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index ba140b1..7c6c36b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -47,7 +47,7 @@ jobs: with: registry: https://git.vhaudiquet.fr username: ${{ gitea.actor }} - password: ${{ secrets.GITEA_TOKEN }} + password: ${{ secrets.PACKAGES_TOKEN }} - name: Compute the release version id: ver @@ -88,7 +88,7 @@ jobs: - name: Push the chart to the Gitea Helm registry run: | - TOKEN=$(echo -n "${{ secrets.GITEA_TOKEN }}" | tr -d '\n') + TOKEN=$(echo -n "${{ secrets.PACKAGES_TOKEN }}" | tr -d '\n') curl --fail --user "${{ gitea.actor }}:${TOKEN}" \ -X POST \ --upload-file rhema-together-*.tgz \