Slack notifications¶
You can send notifications to your Slack channel using an incoming webhook URL.
Hint
Mattermost webhooks are compatible with Slack notification without any special configuration (if Webhooks are enabled).
Configuration¶
File
notif:
slack:
webhookURL: https://hooks.slack.com/services/ABCD12EFG/HIJK34LMN/01234567890abcdefghij
renderFields: true
templateBody: |
Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.
| Name | Default | Description |
|---|---|---|
webhookURL |
Slack incoming webhook URL | |
webhookURLFile |
Use content of secret file as webhook URL if webhookURL is not defined |
|
renderFields |
true |
Render field objects |
proxy |
HTTP proxy URL to use for requests | |
templateBody1 |
See below | Notification template for message body |
Environment variables
DIUN_NOTIF_SLACK_WEBHOOKURLDIUN_NOTIF_SLACK_WEBHOOKURLFILEDIUN_NOTIF_SLACK_RENDERFIELDSDIUN_NOTIF_SLACK_PROXYDIUN_NOTIF_SLACK_TEMPLATEBODY
Default templateBody¶
<!channel> Docker tag {{ if .Entry.Image.HubLink }}<{{ .Entry.Image.HubLink }}|`{{ .Entry.Image }}`>{{ else }}`{{ .Entry.Image }}`{{ end }} {{ if (eq .Entry.Status "new") }}available{{ else }}updated{{ end }}.
Sample¶

-
Value required ↩