26 lines
812 B
Text
26 lines
812 B
Text
|
|
[
|
||
|
|
{
|
||
|
|
"id": "submatter-deploy",
|
||
|
|
"execute-command": "/opt/submatter/proxmox/ct116/deploy-webhook.sh",
|
||
|
|
"command-working-directory": "/opt/submatter",
|
||
|
|
"pass-arguments-to-command": [],
|
||
|
|
"pass-environment-to-command": [
|
||
|
|
{ "source": "string", "name": "DEPLOY_WEBHOOK_SECRET", "envname": "DEPLOY_WEBHOOK_SECRET" },
|
||
|
|
{ "source": "string", "name": "APP_DIR", "envname": "APP_DIR" }
|
||
|
|
],
|
||
|
|
"trigger-http-method": "POST",
|
||
|
|
"include-request-headers-in-environment": true,
|
||
|
|
"incoming-payload-content-type": "application/json",
|
||
|
|
"trigger-rule": {
|
||
|
|
"match": {
|
||
|
|
"type": "payload-hash-sha256",
|
||
|
|
"secret": "REPLACE_WITH_FORGEJO_WEBHOOK_SECRET",
|
||
|
|
"parameter": {
|
||
|
|
"source": "header",
|
||
|
|
"name": "X-Hub-Signature-256"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
]
|