From 1774e0347250757501a521c7e91ef25a228f49c0 Mon Sep 17 00:00:00 2001 From: Guillaume Langlois Date: Tue, 3 Feb 2026 10:11:03 -0500 Subject: [PATCH] Refactor Docker login process to use PIPELINES_PASSWORD for authentication --- .gitea/workflows/create-image.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/create-image.yaml b/.gitea/workflows/create-image.yaml index be56238..a805023 100644 --- a/.gitea/workflows/create-image.yaml +++ b/.gitea/workflows/create-image.yaml @@ -86,14 +86,14 @@ jobs: # Try with verbose curl first to see the full auth flow echo "=== Testing /v2/ endpoint with auth ===" - curl -u "${PIPELINES_USERNAME}:${REGISTRY_TOKEN}" -v "https://${{ env.DOCKER_REGISTRY_DOMAIN }}/v2/" 2>&1 || true + curl -u "${PIPELINES_USERNAME}:${PIPELINES_PASSWORD}" -v "https://${{ env.DOCKER_REGISTRY_DOMAIN }}/v2/" 2>&1 || true echo "" echo "=== Enable Docker CLI debug ===" export DOCKER_CLI_DEBUG=1 echo "=== Now attempting Docker login ===" - timeout 120 bash -c "echo '${REGISTRY_TOKEN}' | docker --debug login '${{ env.DOCKER_REGISTRY_DOMAIN }}' -u '${PIPELINES_USERNAME}' --password-stdin 2>&1" || { + timeout 120 bash -c "echo '${PIPELINES_PASSWORD}' | docker --debug login '${{ env.DOCKER_REGISTRY_DOMAIN }}' -u '${PIPELINES_USERNAME}' --password-stdin 2>&1" || { EXIT_CODE=$? echo "Docker login failed with exit code: $EXIT_CODE" if [ $EXIT_CODE -eq 124 ]; then