From 732f7002732da0352aa4b6128e81bd233784ab7e Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Tue, 10 Mar 2026 23:40:05 -0400 Subject: [PATCH] Add debug and change the docker login --- .gitea/workflows/build.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e48e1b8..92685f2 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -13,12 +13,18 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Debug secret + run: | + if [ -z "$TOKEN" ]; then + echo "SECRET IS EMPTY" + else + echo "SECRET IS SET (length: ${#TOKEN})" + fi + env: + TOKEN: ${{ secrets.REGISTRY_TOKEN }} + - name: Login to Gitea Registry - uses: docker/login-action@v3 - with: - registry: git.timothykim.net - username: timothykim - password: ${{ secrets.REGISTRY_TOKEN }} + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.timothykim.net -u timothykim --password-stdin - name: Build and Push uses: docker/build-push-action@v5