docs: markdown lint
This commit is contained in:
parent
fe44d6f9a2
commit
31944fe6c9
44
README.md
44
README.md
@ -1,14 +1,14 @@
|
||||
<img src="images/logo.png" />
|
||||
|
||||
# drone-telegram
|
||||
|
||||

|
||||
|
||||
[](https://godoc.org/github.com/appleboy/drone-telegram)
|
||||
[](https://cloud.drone.io/appleboy/drone-telegram)
|
||||
[](https://ci.appveyor.com/project/appleboy/drone-telegram)
|
||||
[](https://codecov.io/gh/appleboy/drone-telegram)
|
||||
[](https://goreportcard.com/report/github.com/appleboy/drone-telegram)
|
||||
[](https://hub.docker.com/r/appleboy/drone-telegram/)
|
||||
[](https://microbadger.com/images/appleboy/drone-telegram "Get your own image badge on microbadger.com")
|
||||
[](https://microbadger.com/images/appleboy/drone-telegram "Get your own image badge on microbadger.com")
|
||||
|
||||
[Drone](https://github.com/drone/drone) plugin for sending telegram notifications. For the usage
|
||||
information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/appleboy/drone-telegram/).
|
||||
@ -35,45 +35,29 @@ The pre-compiled binaries can be downloaded from [release page](https://github.c
|
||||
|
||||
With `Go` installed
|
||||
|
||||
```sh
|
||||
go get -u -v github.com/appleboy/drone-telegram
|
||||
```
|
||||
$ go get -u -v github.com/appleboy/drone-telegram
|
||||
```
|
||||
|
||||
or build the binary with the following command:
|
||||
|
||||
```
|
||||
$ export GOOS=linux
|
||||
$ export GOARCH=amd64
|
||||
$ export CGO_ENABLED=0
|
||||
$ export GO111MODULE=on
|
||||
```sh
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
export CGO_ENABLED=0
|
||||
export GO111MODULE=on
|
||||
|
||||
$ go test -cover ./...
|
||||
go test -cover ./...
|
||||
|
||||
$ go build -v -a -tags netgo -o release/linux/amd64/drone-telegram .
|
||||
go build -v -a -tags netgo -o release/linux/amd64/drone-telegram .
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
Test the package with the following command:
|
||||
|
||||
```
|
||||
$ make test
|
||||
```
|
||||
|
||||
## Docker
|
||||
|
||||
Build the docker image with the following commands:
|
||||
|
||||
```
|
||||
$ make docker
|
||||
```
|
||||
|
||||
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
|
||||
'/bin/drone-telegram' not found or does not exist..
|
||||
```sh
|
||||
make test
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
Loading…
x
Reference in New Issue
Block a user