mirror of
https://framagit.org/fredix/drone-gotify
synced 2026-01-23 02:14:06 +00:00
update readme
This commit is contained in:
parent
6721e40017
commit
96e4e1a36a
2 changed files with 9 additions and 5 deletions
11
README.md
11
README.md
|
|
@ -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
|
||||
```
|
||||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue