mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	docs: update to drone 1.0
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
		
							parent
							
								
									56b67e1314
								
							
						
					
					
						commit
						e7fd9e9b89
					
				
							
								
								
									
										22
									
								
								DOCS.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								DOCS.md
									
									
									
									
									
								
							| @ -14,6 +14,7 @@ Use the SSH plugin to execute commands on a remote server. The below pipeline co | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
|       password: 1234 |       password: 1234 | ||||||
| @ -29,6 +30,7 @@ Example configuration in your `.drone.yml` file for multiple hosts: | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: |       host: | ||||||
| +       - foo.com | +       - foo.com | ||||||
| +       - bar.com | +       - bar.com | ||||||
| @ -40,17 +42,18 @@ pipeline: | |||||||
|         - echo world |         - echo world | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Example configuration for command timeout (unit: second), default value is 60 seconds: | Example configuration for command timeout, default value is 60 seconds: | ||||||
| 
 | 
 | ||||||
| ```diff | ```diff | ||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
|       password: 1234 |       password: 1234 | ||||||
|       port: 22 |       port: 22 | ||||||
| +   command_timeout: 120 | +     command_timeout: 2m | ||||||
|       script: |       script: | ||||||
|         - echo hello |         - echo hello | ||||||
|         - echo world |         - echo world | ||||||
| @ -62,6 +65,7 @@ Example configuration for execute commands on a remote server using `SSHProxyC | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
|       password: 1234 |       password: 1234 | ||||||
| @ -81,11 +85,12 @@ Example configuration using password from secrets: | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
| -   password: 1234 | +     password: | ||||||
|  | +       from_secret: ssh_password | ||||||
|       port: 22 |       port: 22 | ||||||
| +   secrets: [ ssh_password ] |  | ||||||
|       script: |       script: | ||||||
|         - echo hello |         - echo hello | ||||||
|         - echo world |         - echo world | ||||||
| @ -97,10 +102,12 @@ Example configuration using ssh key from secrets: | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
|       port: 22 |       port: 22 | ||||||
| +   secrets: [ ssh_key ] | +     key: | ||||||
|  | +       from_secret: ssh_key | ||||||
|       script: |       script: | ||||||
|         - echo hello |         - echo hello | ||||||
|         - echo world |         - echo world | ||||||
| @ -112,12 +119,13 @@ Example configuration for exporting custom secrets: | |||||||
| pipeline: | pipeline: | ||||||
|   ssh: |   ssh: | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  |     settings: | ||||||
|       host: foo.com |       host: foo.com | ||||||
|       username: root |       username: root | ||||||
|       password: 1234 |       password: 1234 | ||||||
|       port: 22 |       port: 22 | ||||||
| +   secrets: [ aws_access_key_id ] | +     envs:  | ||||||
| +   envs: [ aws_access_key_id ] |         - aws_access_key_id | ||||||
|       script: |       script: | ||||||
|         - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID |         - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bo-Yi Wu
						Bo-Yi Wu