Skip to content

Commit

Permalink
fixed port
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed May 30, 2024
1 parent 43dd372 commit a671808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-tests-with-ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ jobs:
- name: Start Docker container
run: |
docker run -d --name test_container -e AUTHORIZED_KEYS="$(cat /tmp/ssh_key.pub)" --platform linux/arm64 diniscruz/python_with_ssh
docker run -d -p 22222:22 --name test_container -e AUTHORIZED_KEYS="$(cat /tmp/ssh_key.pub)" --platform linux/arm64 diniscruz/python_with_ssh
- name: Wait for Docker container to be ready
run: sleep 10

- name: Run a simple SSH command
run: |
ssh -o StrictHostKeyChecking=no -i /tmp/ssh_key root@localhost -p 2222 echo "SSH connection successful"
ssh -o StrictHostKeyChecking=no -i /tmp/ssh_key root@localhost -p 22222 echo "SSH connection successful"
# - name: Run tests
# run: |
Expand Down

0 comments on commit a671808

Please sign in to comment.