Skip to content

Commit

Permalink
refactor: optimize CI pipeline for faster execution
Browse files Browse the repository at this point in the history
- Reduce sleep duration from 3 seconds to 2 seconds
- Rename SSH job steps for clarity
- Change port mapping from 2223 to 2222

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 5, 2024
1 parent 2eeab5b commit da612c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ssh-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
echo "======= container ip address ========="
cat ip.txt
echo "======================================"
sleep 3
sleep 2
- name: executing remote ssh commands using password (1.0.3)
- name: ssh by username and password
uses: appleboy/[email protected]
with:
host: ${{ env.REMOTE_HOST }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
docker run -d \
--name=openssh-server \
--hostname=openssh-server \
-p 2223:2222 \
-p 2222:2222 \
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
-e SUDO_ACCESS=false \
-e PASSWORD_ACCESS=true \
Expand All @@ -80,13 +80,13 @@ jobs:
echo "======= container ip address ========="
cat ip.txt
echo "======================================"
sleep 3
sleep 2
- name: executing remote ssh commands using password (1.0.3)
- name: ssh by private
uses: appleboy/[email protected]
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
key: ${{ env.PRIVATE_KEY }}
port: 2223
port: 2222
script: whoami

0 comments on commit da612c8

Please sign in to comment.