mirror of
				https://github.com/appleboy/ssh-action.git
				synced 2025-10-31 00:10:11 +08:00 
			
		
		
		
	ci: enhance deployment with multi-host SSH action
- Add deployment step for multiple hosts with different ports using `appleboy/ssh-action@v1.0.3` Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									a39b3cce7d
								
							
						
					
					
						commit
						815c5743ac
					
				
							
								
								
									
										15
									
								
								.github/workflows/ssh-server.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/ssh-server.yml
									
									
									
									
										vendored
									
									
								
							| @ -208,3 +208,18 @@ jobs: | |||||||
|             ls \ |             ls \ | ||||||
|               -lah |               -lah | ||||||
|           use_insecure_cipher: true |           use_insecure_cipher: true | ||||||
|  | 
 | ||||||
|  |       # https://github.com/appleboy/ssh-action/issues/85 | ||||||
|  |       - name: Deployment to multiple hosts with different ports | ||||||
|  |         uses: appleboy/ssh-action@v1.0.3 | ||||||
|  |         with: | ||||||
|  |           host: "${{ env.REMOTE_HOST }}:2222" | ||||||
|  |           username: linuxserver.io | ||||||
|  |           key: ${{ env.PRIVATE_KEY }} | ||||||
|  |           port: 1111 | ||||||
|  |           passphrase: 1234 | ||||||
|  |           script_stop: true | ||||||
|  |           script: | | ||||||
|  |             ls \ | ||||||
|  |               -lah | ||||||
|  |           use_insecure_cipher: true | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu