mirror of
				https://github.com/appleboy/drone-ssh.git
				synced 2025-10-29 00:51:15 +08:00 
			
		
		
		
	Unified README and updated badges
This commit is contained in:
		
							parent
							
								
									fe0c2740ba
								
							
						
					
					
						commit
						af63543467
					
				
							
								
								
									
										19
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								README.md
									
									
									
									
									
								
							| @ -1,17 +1,19 @@ | |||||||
| # drone-ssh | # drone-ssh | ||||||
| 
 | 
 | ||||||
| [](http://beta.drone.io/drone-plugins/drone-ssh) | [](http://beta.drone.io/drone-plugins/drone-ssh) | ||||||
| [](https://aircover.co/drone-plugins/drone-ssh) | [](http://godoc.org/github.com/drone-plugins/drone-ssh) | ||||||
| [](https://imagelayers.io/?images=plugins/drone-ssh:latest 'Get your own badge on imagelayers.io') | [](https://goreportcard.com/report/github.com/drone-plugins/drone-ssh) | ||||||
|  | [](https://gitter.im/drone/drone) | ||||||
| 
 | 
 | ||||||
| Drone plugin to execute commands on a remote host through SSH. For the usage information and a listing of the available options please take a look at [the docs](DOCS.md). | Drone plugin to execute commands on a remote host through SSH. For the usage | ||||||
|  | information and a listing of the available options please take a look at | ||||||
|  | [the docs](DOCS.md). | ||||||
| 
 | 
 | ||||||
| ## Build | ## Build | ||||||
| 
 | 
 | ||||||
| Build the binary with the following commands: | Build the binary with the following commands: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| export GO15VENDOREXPERIMENT=1 |  | ||||||
| go build | go build | ||||||
| go test | go test | ||||||
| ``` | ``` | ||||||
| @ -21,11 +23,12 @@ go test | |||||||
| Build the docker image with the following commands: | Build the docker image with the following commands: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| export GO15VENDOREXPERIMENT=1 | CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo | ||||||
| GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo | docker build --rm=true -t plugins/ssh . | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| Please note incorrectly building the image for the correct x64 linux and with GCO disabled will result in an error when running the Docker image: | Please note incorrectly building the image for the correct x64 linux and with | ||||||
|  | GCO disabled will result in an error when running the Docker image: | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
| docker: Error response from daemon: Container command | docker: Error response from daemon: Container command | ||||||
| @ -34,7 +37,7 @@ docker: Error response from daemon: Container command | |||||||
| 
 | 
 | ||||||
| ## Usage | ## Usage | ||||||
| 
 | 
 | ||||||
| Execute a single remote command | Execute from the working directory: | ||||||
| 
 | 
 | ||||||
| ```sh | ```sh | ||||||
| docker run --rm \ | docker run --rm \ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thomas Boerger
						Thomas Boerger