mirror of
https://github.com/coralhl/woodpecker-gotify-plugin.git
synced 2026-10-27 08:48:37 +03:00
A simple Woodpecker plugin to send notifications to Gotify
- Shell 82.1%
- Dockerfile 17.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .woodpecker.yaml | ||
| Dockerfile | ||
| gotify.sh | ||
| README.md | ||
Woodpecker Gotify Plugin
A very simple Woodpecker plugin to send a notification to Gotify.
Notes
I recommend having different steps for success/failure, as the plugin does not seem to be aware of the previous step, so CI_PIPELINE_STATUS seems to always be "success"?
You can use Woodpecker variables in message
Usage
---
steps:
- name: Some Script
image: some/plugin
- name: Gotify Success Notification
image: coralhl/woodpecker-gotify-plugin
settings:
token:
from_secret: gotify_token
gotify_url: 'https://gotify.myawesomedomain.com'
# title is optional
title: Notification from my Pipeline
# priority is optional, defaults to 5
priority: 9
# message is optional
message: Success!
when:
- status: [ success ]
- name: Gotify Failure Notification
image: coralhl/woodpecker-gotify-plugin
settings:
token:
from_secret: gotify_token
gotify_url: 'https://gotify.myawesomedomain.com'
# title is optional
title: Notification from my Pipeline
# priority is optional, defaults to 5
priority: 9
# message is optional
message: Failure!
when:
- status: [ failure ]