You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use {{- toJson .Entries -}} in WATCHTOWER_NOTIFICATION_TEMPLATE, the output doesn't actually look like json.
the first output I get is:
Watchtower 1.5.1
Using notifications: generic+https
Checking all containers (except explicitly disabled with label)
Scheduling first run: 2022-11-16 19:20:00 +0100 CET
Note that the first check will be performed in 3 minutes, 11 seconds
Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏
After a deeper look, it seems toJson is not a standard function in Go templates, but a part of something called "Sprig", so when my template is parsed, there is an error and the default template is returned... Am I right?
Describe the bug
When I use
{{- toJson .Entries -}}
inWATCHTOWER_NOTIFICATION_TEMPLATE
, the output doesn't actually look like json.the first output I get is:
Wich is not a json object.
Steps to reproduce
My conf is:
Expected behavior
I should get a valid json object I guess
Screenshots
No response
Environment
Watchtower 1.5.1 on Linux Docker
Your logs
Additional context
No response
The text was updated successfully, but these errors were encountered: