Sign inSign up

imoshtokill/drone-gotify-plugin

By imoshtokill

•Updated over 2 years ago
Archived

A Drone plugin to send a notification to Gotify.

Image
0

1.6K

imoshtokill/drone-gotify-plugin repository overview

⁠Drone Gotify Plugin

A very simple Drone⁠ plugin to send a notification to Gotify⁠.

Source Code: https://github.com/lreading/drone-gotify-plugin⁠

⁠Usage

---
kind: pipeline
type: kubernetes
name: Some name

steps:
- name: Some Script
  image: some/plugin
- name: Gotify Success Notification
  image:  imoshtokill/drone-gotify-plugin:v1
  settings:
    token:
      from_secret: gotify_token
    gotify_url: 'https://gotify.myawesomedomain.com'
    # title is optional, defaults to:
    # ${DRONE_REPO_NAME}:${DRONE_BUILD_NUMBER} ${DRONE_BUILD_STATUS}
    title: Some title here
    # priority is optional, defaults to 5
    priority: 9
    # message is optional, defaults to:
    #Build ${DRONE_BUILD_NUMBER} of ${DRONE_REPO}: (${DRONE_COMMIT_MESSAGE}): ${DRONE_BUILD_LINK}
    message: Some message
  when:
    status: [ success ]
- name: Gotify Failure Notification
  image:  imoshtokill/drone-gotify-plugin:v1
  settings:
    token:
      from_secret: gotify_token
    gotify_url: 'https://gotify.myawesomedomain.com'
    # title is optional, defaults to:
    # ${DRONE_REPO_NAME}:${DRONE_BUILD_NUMBER} ${DRONE_BUILD_STATUS}
    title: Ruh Row!
    # priority is optional, defaults to 5
    priority: 9
    # message is optional, defaults to:
    #Build ${DRONE_BUILD_NUMBER} of ${DRONE_REPO}: (${DRONE_COMMIT_MESSAGE}): ${DRONE_BUILD_LINK}
    message: We messed up!
  when:
    status: [ failure ]

Tag summary

Content type

Image

Digest

sha256:4312ad727…

Size

4.1 MB

Last updated

over 2 years ago

docker pull imoshtokill/drone-gotify-plugin