From 19b2a3979cf9ec0b20f355d606a371fb91e26e7b Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 21:22:31 +0100 Subject: [PATCH] Add logs --- .gitea/workflows/build-and-push.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index abda1b8..3030c5d 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -32,7 +32,9 @@ jobs: - name: Test SSH connection run: | ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.Networks."test-net".IPAddress') + echo "Server IP: $ip" output=$(docker run --rm --network test-net alpine sh -c "apk add --no-cache openssh-client >/dev/null 2>&1 && ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 root@$ip 'echo test559920' 2>/dev/null") + echo "Captured output: '$output'" if echo "$output" | grep -q "test559920"; then echo "SSH connection test passed" else