Skip to content

Commit

Permalink
ci: enhance CI/CD pipeline with SSH command execution
Browse files Browse the repository at this point in the history
- Add a step to execute multiline SSH commands using `appleboy/[email protected]`

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Jun 5, 2024
1 parent 15b64dc commit a39b3cc
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 @@ -193,3 +193,18 @@ jobs:
script: |
whoami
ls -al
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
- name: Multiline SSH commands interpreted as single lines
uses: appleboy/[email protected]
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
key: ${{ env.PRIVATE_KEY }}
port: 2222
passphrase: 1234
script_stop: true
script: |
ls \
-lah
use_insecure_cipher: true

0 comments on commit a39b3cc

Please sign in to comment.