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:
		
							
								
								
									
										12
									
								
								.github/workflows/ssh-server.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/ssh-server.yml
									
									
									
									
										vendored
									
									
								
							| @@ -181,3 +181,15 @@ jobs: | ||||
|           script: | | ||||
|             whoami | ||||
|             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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
					Bo-Yi Wu