Add logging for action
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
|||||||
- name: Test SSH connection
|
- name: Test SSH connection
|
||||||
run: |
|
run: |
|
||||||
ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.IPAddress')
|
ip=$(docker inspect ssh-server-test | jq -r '.[0].NetworkSettings.IPAddress')
|
||||||
|
echo "TESTING IP $ip"
|
||||||
output=$(ssh -p 22 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@$ip "echo test")
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user