Skip to content

Commit

Permalink
ci: enhance deployment process with multi-host support
Browse files Browse the repository at this point in the history
- Add deployment to 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 13e87b2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ssh-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,19 @@ 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_stop: true
script: |
ls \
-lah
use_insecure_cipher: true

0 comments on commit 13e87b2

Please sign in to comment.