ci: enhance CI pipeline with SSH key handling improvements
- Add a job to handle missing SSH key passphrase with `appleboy/ssh-action` and `continue-on-error` set to true Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
e40b597081
commit
15b64dc891
12
.github/workflows/ssh-server.yml
vendored
12
.github/workflows/ssh-server.yml
vendored
@ -181,3 +181,15 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
whoami
|
whoami
|
||||||
ls -al
|
ls -al
|
||||||
|
|
||||||
|
- name: missing ssh key passphrase
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
host: ${{ env.REMOTE_HOST }}
|
||||||
|
username: linuxserver.io
|
||||||
|
key: ${{ env.PRIVATE_KEY }}
|
||||||
|
port: 2222
|
||||||
|
script: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
Loading…
Reference in New Issue
Block a user