ddon-server/deploy/hooks.json

37 lines
702 B
JSON
Raw Permalink Normal View History

2022-04-22 19:32:13 +08:00
[
{
"id": "webhook",
"execute-command": "/var/ddon/deploy.sh",
"command-working-directory": "/var/ddon",
"trigger-rule":
{
"and":
[
{
"match":
{
2022-04-22 21:59:15 +08:00
"type": "payload-hash-sha1",
2022-04-22 19:32:13 +08:00
"secret": "ddon-deploy",
"parameter":
{
"source": "header",
"name": "X-Hub-Signature"
}
}
},
{
"match":
{
"type": "value",
2022-04-22 20:11:56 +08:00
"value": "refs/heads/live",
2022-04-22 19:32:13 +08:00
"parameter":
{
"source": "payload",
"name": "ref"
}
}
}
]
}
}
]