mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	docs: improve docs (#50)
This commit is contained in:
		
							parent
							
								
									bb0d89368f
								
							
						
					
					
						commit
						4507e5e4f0
					
				
							
								
								
									
										33
									
								
								DOCS.md
									
									
									
									
									
								
							
							
						
						
									
										33
									
								
								DOCS.md
									
									
									
									
									
								
							| @ -33,6 +33,39 @@ pipeline: | |||||||
| +    - foo.com | +    - foo.com | ||||||
| +    - bar.com | +    - bar.com | ||||||
|     username: root |     username: root | ||||||
|  |     password: 1234 | ||||||
|  |     port: 22 | ||||||
|  |     script: | ||||||
|  |       - echo hello | ||||||
|  |       - echo world | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | Example configuration for login with private key: | ||||||
|  | 
 | ||||||
|  | ```diff | ||||||
|  | pipeline: | ||||||
|  |   ssh: | ||||||
|  |     image: appleboy/drone-ssh | ||||||
|  |     host: foo.com | ||||||
|  |     username: root | ||||||
|  | -   password: 1234 | ||||||
|  | +   key: ${DEPLOY_KEY} | ||||||
|  |     port: 22 | ||||||
|  |     script: | ||||||
|  |       - echo hello | ||||||
|  |       - echo world | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | Example configuration for login with file path of private key: | ||||||
|  | 
 | ||||||
|  | ```diff | ||||||
|  | pipeline: | ||||||
|  |   ssh: | ||||||
|  |     image: appleboy/drone-ssh | ||||||
|  |     host: foo.com | ||||||
|  |     username: root | ||||||
|  | -   password: 1234 | ||||||
|  | +   key_path: ./deploy/key.pem | ||||||
|     port: 22 |     port: 22 | ||||||
|     script: |     script: | ||||||
|       - echo hello |       - echo hello | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu