From 93129d945fcd07a933c4d27c36c42fd656117a77 Mon Sep 17 00:00:00 2001 From: "Billy D." Date: Sat, 14 Feb 2026 09:21:48 -0500 Subject: [PATCH] fix: use config.json auth for Gitea registry login docker login --password-stdin fails on act runner (non-TTY). Use base64 auth in ~/.docker/config.json instead, matching the kuberay-images pattern. --- .gitea/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 45d5b8c..fe2e09f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -133,7 +133,18 @@ jobs: - name: Login to Gitea Registry run: | - echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY_HOST }} -u ${{ secrets.REGISTRY_USER }} --password-stdin + AUTH=$(echo -n "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" | base64 -w0) + mkdir -p ~/.docker + cat > ~/.docker/config.json << EOF + { + "auths": { + "${{ env.REGISTRY_HOST }}": { + "auth": "$AUTH" + } + } + } + EOF + echo "Auth configured for ${{ env.REGISTRY_HOST }}" - name: Extract metadata id: meta