feat: Add redeploy-webhook configuration to hooks.json.

This commit is contained in:
2026-01-28 01:38:07 +03:00
parent 0ee6391810
commit 1f23f3cea7

32
webhook/hooks.json Normal file
View File

@@ -0,0 +1,32 @@
[
{
"id": "redeploy-webhook",
"execute-command": "/etc/webhook/scripts/deploy-myproject.sh",
"command-working-directory": "/etc/webhook/scripts",
"response-message": "Executing deploy script...",
"pass-arguments-to-command": [
{
"source": "payload",
"name": "head_commit.id"
},
{
"source": "payload",
"name": "pusher.name"
},
{
"source": "payload",
"name": "pusher.email"
}
],
"trigger-rule": {
"match": {
"type": "payload-hash-sha1",
"secret": "myseasonchange",
"parameter": {
"source": "header",
"name": "X-Hub-Signature"
}
}
}
}
]