-
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 \ | ||
|
@@ -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 |