forked from Conjure-Tools/unity-runner
Refactor Docker login process to use PIPELINES_PASSWORD for authentication
Some checks failed
🤓 Individual Runners / Build 🐳 windows-mono (push) Failing after 1m13s
Some checks failed
🤓 Individual Runners / Build 🐳 windows-mono (push) Failing after 1m13s
This commit is contained in:
parent
6040f745ac
commit
1774e03472
@ -86,14 +86,14 @@ jobs:
|
|||||||
|
|
||||||
# Try with verbose curl first to see the full auth flow
|
# Try with verbose curl first to see the full auth flow
|
||||||
echo "=== Testing /v2/ endpoint with auth ==="
|
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 ""
|
||||||
echo "=== Enable Docker CLI debug ==="
|
echo "=== Enable Docker CLI debug ==="
|
||||||
export DOCKER_CLI_DEBUG=1
|
export DOCKER_CLI_DEBUG=1
|
||||||
|
|
||||||
echo "=== Now attempting Docker login ==="
|
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=$?
|
EXIT_CODE=$?
|
||||||
echo "Docker login failed with exit code: $EXIT_CODE"
|
echo "Docker login failed with exit code: $EXIT_CODE"
|
||||||
if [ $EXIT_CODE -eq 124 ]; then
|
if [ $EXIT_CODE -eq 124 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user