From 3ae30f236861c0277a55905063105fc36d32cece Mon Sep 17 00:00:00 2001 From: Eugene Amos Date: Sat, 25 Nov 2023 11:44:14 -0800 Subject: [PATCH] watchtower > adding watchtower to repo --- README.md | 2 -- watchtower/watchtower-template.txt | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 watchtower/watchtower-template.txt diff --git a/README.md b/README.md index 309feee..e835f9a 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ > * [podfetch](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/podfetch) > * Monitor a folder and when a new file is created. It will change the .mp3 name to the name of the parent folder. -> * [qbittorrentvpn](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/qbittorrentvpn) -> * Set the category of the added file to a special category based on if the file is 1080p or 2160p AND if the file is a Show. > * [qbittorrent](https://gitea.euronvault.com/euronvault/eScripts/src/branch/main/qbittorrent) > * Set the category of the added file to a special category based on if the file is 1080p or 2160p AND if the file is a Show. diff --git a/watchtower/watchtower-template.txt b/watchtower/watchtower-template.txt new file mode 100644 index 0000000..bf61c28 --- /dev/null +++ b/watchtower/watchtower-template.txt @@ -0,0 +1,25 @@ +{{- if .Report -}} + {{- with .Report -}} + {{- $len := .Scanned | len -}} + {{- if gt $len 0 -}} + {Watchtower - NAS{"\n"}{"\n"}} + {{- $len}} Scanned, {{len .Updated}} Updated, {{len .Failed}} Failed{{"\n"}} + {{- range .Updated -}} + - 🟥 {{.Name}} ({{.ImageName}}): {{.CurrentImageID.ShortID}} updated to {{.LatestImageID.ShortID}}{{"\n"}} + {{- end -}} + {{- range .Fresh -}} + - {{.Name}} ({{.ImageName}}): {{.State}}{{"\n"}} + {{- end -}} + {{- range .Skipped -}} + - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}{{"\n"}} + {{- end -}} + {{- range .Failed -}} + - {{.Name}} ({{.ImageName}}): {{.State}}: {{.Error}}{{"\n"}} + {{- end -}} + {{- else -}} + No updates found.{{"\n"}} + {{- end -}} + {{- end -}} +{{- else -}} + {{range .Entries -}}{{.Message}}{{"\n"}}{{- end -}} +{{- end -}}