Skip to content

Commit 815c574

Browse files
committedJun 5, 2024··
ci: enhance deployment with multi-host SSH action
- Add deployment step for multiple hosts with different ports using `appleboy/ssh-action@v1.0.3` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
1 parent a39b3cc commit 815c574

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
 

‎.github/workflows/ssh-server.yml

+15
Original file line numberDiff line numberDiff line change
@@ -208,3 +208,18 @@ jobs:
208208
ls \
209209
-lah
210210
use_insecure_cipher: true
211+
212+
# https://github.com/appleboy/ssh-action/issues/85
213+
- name: Deployment to multiple hosts with different ports
214+
uses: appleboy/ssh-action@v1.0.3
215+
with:
216+
host: "${{ env.REMOTE_HOST }}:2222"
217+
username: linuxserver.io
218+
key: ${{ env.PRIVATE_KEY }}
219+
port: 1111
220+
passphrase: 1234
221+
script_stop: true
222+
script: |
223+
ls \
224+
-lah
225+
use_insecure_cipher: true

0 commit comments

Comments
 (0)
Please sign in to comment.