From f95b6b78067517f5f9c883fd312afba8c51186bd Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Tue, 10 Mar 2026 23:46:39 -0400 Subject: [PATCH] more debug --- .gitea/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b194f72..e5dc97c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,8 +13,21 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Debug registry auth + run: | + echo "=== Token length ===" + echo "${#TOKEN}" + echo "=== Curl with basic auth ===" + curl -vsk -u "${{ gitea.actor }}:${TOKEN}" https://git.timothykim.net/v2/ 2>&1 + echo "" + echo "=== Curl with REGISTRY_TOKEN ===" + curl -vsk -u "${{ gitea.actor }}:${REG_TOKEN}" https://git.timothykim.net/v2/ 2>&1 + env: + TOKEN: ${{ gitea.token }} + REG_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + - name: Login to Gitea Registry - run: echo "${{ gitea.token }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin - name: Build and Push uses: docker/build-push-action@v5