Skip to content

Commit da612c8

Browse files
committed
refactor: optimize CI pipeline for faster execution
- 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]>
1 parent 2eeab5b commit da612c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ssh-server.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
echo "======= container ip address ========="
2929
cat ip.txt
3030
echo "======================================"
31-
sleep 3
31+
sleep 2
3232
33-
- name: executing remote ssh commands using password (1.0.3)
33+
- name: ssh by username and password
3434
uses: appleboy/[email protected]
3535
with:
3636
host: ${{ env.REMOTE_HOST }}
@@ -65,7 +65,7 @@ jobs:
6565
docker run -d \
6666
--name=openssh-server \
6767
--hostname=openssh-server \
68-
-p 2223:2222 \
68+
-p 2222:2222 \
6969
-e PUBLIC_KEY="${{ env.PUBLIC_KEY }}" \
7070
-e SUDO_ACCESS=false \
7171
-e PASSWORD_ACCESS=true \
@@ -80,13 +80,13 @@ jobs:
8080
echo "======= container ip address ========="
8181
cat ip.txt
8282
echo "======================================"
83-
sleep 3
83+
sleep 2
8484
85-
- name: executing remote ssh commands using password (1.0.3)
85+
- name: ssh by private
8686
uses: appleboy/[email protected]
8787
with:
8888
host: ${{ env.REMOTE_HOST }}
8989
username: linuxserver.io
9090
key: ${{ env.PRIVATE_KEY }}
91-
port: 2223
91+
port: 2222
9292
script: whoami

0 commit comments

Comments
 (0)