Refactor Docker login process to use PIPELINES_PASSWORD for authentication
Some checks failed
🤓 Individual Runners / Build 🐳 windows-mono (push) Failing after 1m13s

This commit is contained in:
Guillaume Langlois 2026-02-03 10:11:03 -05:00
parent 6040f745ac
commit 1774e03472

View File

@ -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