Skip to content
Snippets Groups Projects
Commit cb425a55 authored by Christian Elberfeld's avatar Christian Elberfeld
Browse files

Watchtower notification template

parent cff23caa
No related branches found
No related tags found
No related merge requests found
......@@ -18,11 +18,11 @@ services:
WATCHTOWER_NOTIFICATION_REPORT: "true"
WATCHTOWER_NOTIFICATION_URL: >
matrix://:{{ matrix_notification_access_token }}@{{ matrix.domain }}/?rooms={{ matrix.notifications_room_id }}
WATCHTOWER_NOTIFICATION_TEMPLATE: |
WATCHTOWER_NOTIFICATION_TEMPLATE: | {% raw %}
{{- if .Report -}}
{{- with .Report -}}
{{- if ( or .Updated .Failed ) -}}
Watchtower @ webserver2 {{"\n"}}
{% endraw %}Watchtower @ {{ inventory_hostname }} {%raw %} {{"\n"}}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
{{- range .Updated}}
- {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
......@@ -36,6 +36,7 @@ services:
{{- end -}}
{{- end -}}
{{- end -}}
{% endraw %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment