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>
This commit is contained in:
Bo-Yi Wu 2024-06-05 17:01:56 +08:00
parent a39b3cce7d
commit 815c5743ac
No known key found for this signature in database

View file

@ -208,3 +208,18 @@ jobs:
ls \ ls \
-lah -lah
use_insecure_cipher: true use_insecure_cipher: true
# https://github.com/appleboy/ssh-action/issues/85
- name: Deployment to multiple hosts with different ports
uses: appleboy/ssh-action@v1.0.3
with:
host: "${{ env.REMOTE_HOST }}:2222"
username: linuxserver.io
key: ${{ env.PRIVATE_KEY }}
port: 1111
passphrase: 1234
script_stop: true
script: |
ls \
-lah
use_insecure_cipher: true