When deploying soulteary/webhook:7.0.0 in Docker Swarm, the service fails to start due to a template validation error in hooks.json.
The error is:
Configuration validation failed: found 1 error(s)
- hook-file[/etc/webhook/hooks.json]: cannot load hook file /etc/webhook/hooks.json: template: hooks:44: function "cat" not defined
Root Cause:
"value": "Bearer {{ cat \"/run/secrets/webhook-token\" | trimSpace }}"
However, the webhook template engine does not provide the cat function in its built-in Go template function set.
As a result, the configuration fails during startup validation.
Related Issue:
This may be related to or overlapping with:
👉 https://github.com/adnanh/webhook/issues/748
When deploying
soulteary/webhook:7.0.0in Docker Swarm, the service fails to start due to a template validation error in hooks.json.The error is:
Root Cause:
"value": "Bearer {{ cat \"/run/secrets/webhook-token\" | trimSpace }}"However, the webhook template engine does not provide the cat function in its built-in Go template function set.
As a result, the configuration fails during startup validation.
Related Issue:
This may be related to or overlapping with:
👉
https://github.com/adnanh/webhook/issues/748