This is a python plugin for drone that sends messages to a gotify server. It can be used as a standalone docker container as long as the following environment variables are set:
The following are optional
1)text/markdown)Gotify docs
Drone docker runner environment variables
- name: gotify
image: skierz/drone-gotify
settings:
url:
from_secret: gotify_url
priority:
from_secret: gotify_priority
title:
from_secret: gotify_title
token:
from_secret: gotify_token
message: >
{% if 'success' in DRONE_BUILD_STATUS %}
[Build {{ DRONE_BUILD_NUMBER }}]({{ DRONE_BUILD_URL }}) succeeded on [{{ DRONE_REPO_NAME }}]({{ DRONE_REPO_LINK }}). Good job {{ DRONE_COMMIT_AUTHOR }} on [commit link]({{ DRONE_COMMIT_LINK }})
{% else %}
[Build {{ DRONE_BUILD_NUMBER }}]({{ DRONE_BUILD_URL }}) failed on [{{ DRONE_REPO_NAME }}]({{ DRONE_REPO_LINK }}). {{ DRONE_COMMIT_AUTHOR }} please fix [commit link]({{ DRONE_COMMIT_LINK }})
{% endif %}
when:
status: [ success, failure ]
Content type
Image
Digest
sha256:62547825f…
Size
378.4 MB
Last updated
almost 3 years ago
docker pull skierz/drone-gotify