Ignore ssh warning on test
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:08:11 +01:00
parent 3cb0213ee0
commit 43bc00a4a6

View File

@@ -30,11 +30,11 @@ jobs:
- name: Test SSH connection - name: Test SSH connection
run: | run: |
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@ssh-server-test 'echo test'") 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@ssh-server-test 'echo test559920'")
if [ "$output" = "test" ]; then if echo "$output" | grep -q "test559920"; then
echo "SSH connection test passed" echo "SSH connection test passed"
else else
echo "SSH connection test failed" echo "SSH connection test failed: $output"
exit 1 exit 1
fi fi
docker stop ssh-server-test && docker rm ssh-server-test && docker network rm test-net docker stop ssh-server-test && docker rm ssh-server-test && docker network rm test-net