mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 18:19:36 +01:00
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
1 changed files with 12 additions and 0 deletions
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 a new issue