more logs
Some checks failed
Build, Test and Push Docker Image / e2e-test (push) Failing after 6s
Build, Test and Push Docker Image / build-and-push (push) Has been skipped

This commit is contained in:
2025-11-06 21:25:13 +01:00
parent 70bb8c32da
commit 9d00ac5fad

View File

@@ -33,7 +33,7 @@ jobs:
run: | run: |
ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.Networks."test-net".IPAddress') ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.Networks."test-net".IPAddress')
echo "Server IP: $ip" 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" ; } 2>&1 ) output=$( { docker run --rm --network test-net alpine sh -c "apk add --no-cache openssh-client && ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 root@$ip 'echo test559920' 2>/dev/null" ; } 2>&1 )
echo "Captured output: '$output'" echo "Captured output: '$output'"
if echo "$output" | grep -q "test559920"; then if echo "$output" | grep -q "test559920"; then
echo "SSH connection test passed" echo "SSH connection test passed"