mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 18:19:36 +01:00
ci: enhance CI/CD pipeline with SSH command execution
- Add a step to execute multiline SSH commands using `appleboy/ssh-action@v1.0.3` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
15b64dc891
commit
a39b3cce7d
1 changed files with 15 additions and 0 deletions
15
.github/workflows/ssh-server.yml
vendored
15
.github/workflows/ssh-server.yml
vendored
|
@ -193,3 +193,18 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
whoami
|
whoami
|
||||||
ls -al
|
ls -al
|
||||||
|
|
||||||
|
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
|
||||||
|
- name: Multiline SSH commands interpreted as single lines
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue