update readme

This commit is contained in:
fredix 2019-06-09 14:52:41 +02:00
parent 6721e40017
commit 96e4e1a36a
2 changed files with 9 additions and 5 deletions

View file

@ -1,9 +1,16 @@
# drone-gotify
environment variables :
## documentations
https://gotify.net/docs/more-pushmsg#golang
https://docs.drone.io/plugins/examples/golang/
## environment variables :
PLUGIN_ENDPOINT=https://gotify.server
```
PLUGIN_ENDPOINT=https://gotify.server.tld
PLUGIN_TOKEN=APPLICATION_TOKEN
PLUGIN_TITLE="from drone-gotify"
PLUGIN_MESSAGE="test"
PLUGIN_PRIORITY=5
```

View file

@ -7,9 +7,6 @@ import (
"log"
)
// https://gotify.net/docs/more-pushmsg#golang
// https://docs.drone.io/plugins/examples/golang/
func main() {
token := os.Getenv("PLUGIN_TOKEN")
endpoint := os.Getenv("PLUGIN_ENDPOINT")