Change port for test
Some checks failed
Build and Push Docker Image / build-and-push (push) Successful in 14s
E2E Test / e2e-test (push) Failing after 3s

This commit is contained in:
2025-11-06 20:31:51 +01:00
parent f421c5aec7
commit 0ca9d8b011

View File

@@ -21,14 +21,14 @@ jobs:
- name: Run SSH server
run: |
docker run -d --name ssh-server-test -p 2222:22 -e COMMAND="echo 'SSH connection successful'" ssh-server-test
docker run -d --name ssh-server-test -p 2223:22 -e COMMAND="echo 'SSH connection successful'" ssh-server-test
- name: Wait for server to start
run: sleep 5
- name: Test SSH connection
run: |
output=$(ssh -p 2222 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost "echo test")
output=$(ssh -p 2223 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@localhost "echo test")
if [ "$output" = "test" ]; then
echo "SSH connection test passed"
else