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.
This commit is contained in:
vhaudiquet committed 2026-11-28 12:03:05 +01:00
1 parent 135dd3143c
commit aab0d0a2ec
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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 \
+2 -2
View File
@@ -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 \