Sign inSign up

spritsail/drone-notify

By spritsail

•Updated 8 months ago

Takes Drones global notifications and spits out a telegram message

Image
0

1.1K

spritsail/drone-notify repository overview

⁠spritsail/drone-notify⁠

Latest Version Image Size Docker Pulls Docker Stars Build Status

This script sets up a webhook listener for Drone's global webhooks. It then sends a notification to a Telegram channel every time a build passes or fails.

⁠Getting Started

Run the docker container with a config file (notify.conf) mounted to /config/notify.conf. Configure the required parameters. At the bare minimum a Telegram bot token (main.token) and default channel (channels.default) will need to be added.

An example config file can be found in notify.conf.example

Then run the container:

docker run -d \
    --name=drone-notify \
    --restart=always \
    -v path/to/notify.conf:/config/notify.conf \
    spritsail/drone-notify

⁠Docker Compose Configuration

services:
  drone:
    image: drone/drone:2
    ...
    environment:
      ...
      - DRONE_WEBHOOK_ENDPOINT=http://notify:5000
      - DRONE_WEBHOOK_SECRET=YOUR_SECRET

  notify:
    image: spritsail/drone-notify:1.3
    volumes:
      - path/to/notify.conf:/config/notify.conf

Tag summary

Content type

Image

Digest

sha256:402b21d4d…

Size

43.8 MB

Last updated

over 1 year ago

docker pull spritsail/drone-notify