No description
Find a file
2020-04-19 11:46:14 +02:00
.gitignore first commit 2019-06-09 14:49:22 +02:00
Dockerfile drone-gotify on amd64 2020-04-19 11:45:47 +02:00
drone-gotify.go drone-gotify on amd64 2020-04-19 11:45:47 +02:00
go.mod drone-gotify on amd64 2020-04-19 11:46:14 +02:00
plugin.go clean code 2019-06-09 19:41:37 +02:00
README.md drone-gotify on amd64 2020-04-19 11:45:47 +02:00

drone-gotify

documentations

https://gotify.net/docs/more-pushmsg#golang
https://docs.drone.io/plugins/golang/

environment variables :

PLUGIN_GOTIFY_ENDPOINT="https://gotify.server.tld"
PLUGIN_GOTIFY_TOKEN="GOTIFY_APPLICATION_TOKEN"
PLUGIN_GOTIFY_TITLE="from drone-gotify"
PLUGIN_MESSAGE="test"          
PLUGIN_GOTIFY_PRIORITY="5"     

Example in a .drone.yml

- name: gotify
  image: fredix/arm64v8-alpine-drone-gotify
  settings:
    gotifytoken:
      from_secret: plugin_gotifytoken
    gotifyendpoint:
      from_secret: plugin_gotifyendpoint
    gotifytitle:
      from_secret: plugin_gotifytitle
    gotifypriority:
      from_secret: plugin_gotifypriority
    message: >
      {{#success build.status}}
        build {{build.number}} succeeded on {{repo.name}}. Good job {{build.author}}  {{build.link}}
      {{else}}
        build {{build.number}} failed on {{repo.name}}. Fix me please {{build.author}}  {{build.link}}
      {{/success}}
  when:
    status: [ success, failure ]