Sign inSign up

skierz/drone-gotify

By skierz

Updated almost 3 years ago

Image
0

1.4K

skierz/drone-gotify repository overview

drone-gotify

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:

  • PLUGIN_URL
  • PLUGIN_TOKEN
  • PLUGIN_TITLE
  • PLUGIN_MESSAGE

The following are optional

  • PLUGIN_PRIORITY (defaults to 1)
  • PLUGIN_CONTENT_TYPE (defaults to text/markdown)

Documentation

Gotify docs
Drone docker runner environment variables

Example in a .drone.yml

- 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 ]

Tag summary

Content type

Image

Digest

sha256:62547825f

Size

378.4 MB

Last updated

almost 3 years ago

docker pull skierz/drone-gotify