Call to container ip
Some checks failed
Build, Test and Push Docker Image / build-and-push (push) Has been cancelled
Build, Test and Push Docker Image / e2e-test (push) Has been cancelled

This commit is contained in:
2025-11-06 20:55:04 +01:00
parent 8ed90fc474
commit 0295450bef

View File

@@ -29,7 +29,8 @@ jobs:
- name: Test SSH connection - name: Test SSH connection
run: | run: |
output=$(ssh -p 2223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@127.0.0.1 "echo test") ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.IPAddress')
output=$(ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$ip "echo test")
if [ "$output" = "test" ]; then if [ "$output" = "test" ]; then
echo "SSH connection test passed" echo "SSH connection test passed"
else else