0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-12 11:38:11 +00:00
crazy-max_diun/docs/notif/teams.md
2022-12-29 07:52:05 +01:00

2 KiB

Teams notifications

You can send notifications to your Teams team-channel using an incoming webhook URL.

Configuration

!!! example "File" yaml notif: teams: webhookURL: https://outlook.office.com/webhook/ABCD12EFG/HIJK34LMN/01234567890abcdefghij renderFacts: true templateBody: | Docker tag {{ .Entry.Image }} which you subscribed to through {{ .Entry.Provider }} provider has been released.

Name Default Description
webhookURL1 Teams incoming webhook URL
renderFacts true Render fact objects
templateBody1 See below Notification template for message body

!!! abstract "Environment variables" * DIUN_NOTIF_TEAMS_WEBHOOKURL * DIUN_NOTIF_TEAMS_RENDERFACTS * DIUN_NOTIF_TEAMS_TEMPLATEBODY

Default templateBody

Docker tag {{ if .Entry.Image.HubLink }}[`{{ .Entry.Image }}`]({{ .Entry.Image.HubLink }}){{ else }}`{{ .Entry.Image }}`{{ end }}{{ if (eq .Entry.Status "new") }}newly added{{ else }}updated{{ end }}.

Sample


  1. Value required ↩︎