Skip to content

Commit

Permalink
ci: enhance deployment with multi-host SSH action
Browse files Browse the repository at this point in the history
- Add deployment step for multiple hosts with different ports using `appleboy/[email protected]`

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 5, 2024
1 parent a39b3cc commit 815c574
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ssh-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,18 @@ jobs:
ls \
-lah
use_insecure_cipher: true

# https://github.com/appleboy/ssh-action/issues/85
- name: Deployment to multiple hosts with different ports
uses: appleboy/[email protected]
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

0 comments on commit 815c574

Please sign in to comment.