Watchtower: Template adjustment

This commit is contained in:
Tobias Manske 2023-03-09 12:52:30 +01:00
parent c5b48f84f5
commit 2a084b37ea
Signed by: tobias
GPG Key ID: E83C743C1FC2F79A

View File

@ -15,15 +15,12 @@ services:
{% raw %} {% raw %}
{{- if .Report -}} {{- if .Report -}}
{{- with .Report -}} {{- with .Report -}}
{{- if ( or .Updated .Failed ) -}} {{- if ( or .Updated .Failed .Skipped ) -}}
{% endraw %} {% endraw %}
Updates on {{ inventory_hostname }}{% raw %} Updates on {{ inventory_hostname }}{% raw %}
{{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed {{len .Scanned}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed
{{- range .Updated}} {{- range .Updated}}
- {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}} - {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}
{{- end -}}
{{- range .Fresh}}
- {{.Name}} ({{.ImageName}}): {{.State}}
{{- end -}} {{- end -}}
{{- range .Skipped}} {{- range .Skipped}}
- {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}} - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}