Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch committed Oct 20, 2024
1 parent fe2fe77 commit 1cf5d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
image: ghcr.io/tristiisch/docker_throw_ssh:latest
ports:
- 2222:22
# --privileged
options: >
--privileged
--cap-add=NET_ADMIN
--cap-add=NET_RAW
--tmpfs /run
Expand All @@ -49,8 +49,8 @@ jobs:
sudo apt update &> /dev/null
sudo apt install -y netcat &> /dev/null
fi
echo "CONTAINER_NAME=$(docker ps --format '{{.Names}}' | head -n 1)" >> $GITHUB_ENV
docker ps -a
echo "CONTAINER_NAME=$(docker ps --format '{{.Names}}' | head -n 1)" >> $GITHUB_ENV
echo "Waiting for SSH server at ${{ env.REMOTE_SSH_HOST }}:${{ env.REMOTE_SSH_PORT }}..."
timeout 30 bash -c 'while ! nc -zv ${{ env.REMOTE_SSH_HOST }} ${{ env.REMOTE_SSH_PORT }}; do sleep 1; done'
echo "SSH server port is open."
Expand Down

0 comments on commit 1cf5d95

Please sign in to comment.