From bf6783cb83d45c77ee8bf33777961d9901ed6006 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 15 Apr 2026 21:28:27 +0200 Subject: [PATCH] ci: add all possible credentials When running the mirror-images step from within the release-image workflow we receive error messages such as > msg="Failed to sync" target=ghcr.io/continuwuity/continuwuity:v0.5.0-rc.7 > source=forgejo.ellis.link/continuwuation/continuwuity:v0.5.0-rc.7 > error="failed to send blob post, ref > ghcr.io/continuwuity/continuwuity@sha256:74976f7b85018b5abd867333bc783c7230d985a4b0af595bbf55964e25afe6ef: > unauthorized" So, we will need to define our credentials in the release-image workflow too it seems, when we pull in the mirror-image workflow. This is a test by adding all credentials that are defined in mirror-images.yml Probably we don't need them all, but if this does not work, the whole approach is flawed and we can remove everyting again. If it works, we should remove unneccessary credentials until we found the required ones. --- .forgejo/workflows/release-image.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.forgejo/workflows/release-image.yml b/.forgejo/workflows/release-image.yml index 01892d0e4..f975386ed 100644 --- a/.forgejo/workflows/release-image.yml +++ b/.forgejo/workflows/release-image.yml @@ -205,4 +205,15 @@ jobs: needs: - merge-maxperf - merge-release + env: + BUILTIN_REGISTRY_USER: ${{ vars.BUILTIN_REGISTRY_USER }} + BUILTIN_REGISTRY_PASSWORD: ${{ secrets.BUILTIN_REGISTRY_PASSWORD }} + GITLAB_USERNAME: ${{ vars.GITLAB_USERNAME }} + GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} + N7574_GIT_USERNAME: ${{ vars.N7574_GIT_USERNAME }} + N7574_GIT_TOKEN: ${{ secrets.N7574_GIT_TOKEN }} + GH_PACKAGES_USER: ${{ vars.GH_PACKAGES_USER }} + GH_PACKAGES_TOKEN: ${{ secrets.GH_PACKAGES_TOKEN }} + DOCKER_MIRROR_USER: ${{ vars.DOCKER_MIRROR_USER }} + DOCKER_MIRROR_TOKEN: ${{ secrets.DOCKER_MIRROR_TOKEN }} uses: ./.forgejo/workflows/mirror-images.yml