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:
Bo-Yi Wu 2024-06-05 16:16:59 +08:00
parent e40b597081
commit 15b64dc891
No known key found for this signature in database

View File

@ -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