From 1f23f3cea7b3ae5f6fa1c844c38fa6a5dfad3d8d Mon Sep 17 00:00:00 2001 From: Andrey Smakotin Date: Wed, 28 Jan 2026 01:38:07 +0300 Subject: [PATCH] feat: Add redeploy-webhook configuration to hooks.json. --- webhook/hooks.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 webhook/hooks.json diff --git a/webhook/hooks.json b/webhook/hooks.json new file mode 100644 index 0000000..156df1b --- /dev/null +++ b/webhook/hooks.json @@ -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" + } + } + } + } +] \ No newline at end of file