dadi-staging-webhook/webhooks-git/hooks.json.tmpl

46 lines
882 B
Cheetah

[
{
"id": "dadi-staging-webhook",
"http-methods": ["POST"],
"execute-command": "/etc/webhook/dadi-staging-hook.sh",
"command-working-directory": "/etc/webhook/",
"response-message": "I got the payload!",
"response-headers":
[
{
"name": "Access-Control-Allow-Origin",
"value": "*"
}
],
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "repository.name"
},
{
"source": "payload",
"name": "ref"
}
],
"trigger-rule":
{
"and":
[
{
"match":
{
"type": "payload-hmac-sha1",
"secret": "${WEBHOOK_SECRET}",
"parameter":
{
"source": "header",
"name": "X-Hub-Signature"
}
}
}
]
}
},
]