Discord notifications¶
Allow sending notifications to your Discord channel.
Configuration¶
File
notif:
discord:
webhookURL: https://discordapp.com/api/webhooks/1234567890/Abcd-eFgh-iJklmNo_pqr
mentions:
- "@here"
- "@everyone"
- "<@124>"
- "<@125>"
- "<@&200>"
renderFields: true
timeout: 10s
templateBody: |
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
Name | Default | Description |
---|---|---|
webhookURL 1 |
Discord incoming webhook URL | |
mentions |
List of users or roles to notify | |
renderFields |
true |
Render field objects |
timeout |
10s |
Timeout specifies a time limit for the request to be made |
templateBody 1 |
See below | Notification template for message body |
Environment variables
DIUN_NOTIF_DISCORD_WEBHOOKURL
DIUN_NOTIF_DISCORD_MENTIONS
(comma separated)DIUN_NOTIF_DISCORD_RENDERFIELDS
DIUN_NOTIF_DISCORD_TIMEOUT
DIUN_NOTIF_DISCORD_TEMPLATEBODY
Default templateBody
¶
Docker tag {{ if .Entry.Image.HubLink }}[**{{ .Entry.Image }}**]({{ .Entry.Image.HubLink }}){{ else }}**{{ .Entry.Image }}**{{ end }} which you subscribed to through {{ .Entry.Provider }} provider {{ if (eq .Entry.Status "new") }}is available{{ else }}has been updated{{ end }} on {{ .Entry.Image.Domain }} registry (triggered by {{ .Meta.Hostname }} host).
Sample¶
Last update:
2022-12-29 06:52:05
Created: 2020-06-26 16:06:47
Created: 2020-06-26 16:06:47