Files
Sistem_Kehadiran_Taklimat_SPR/docker/webhook/hooks.json
2026-06-16 21:03:26 +08:00

33 lines
718 B
JSON

[
{
"id": "deploy",
"execute-command": "/deploy.sh",
"command-working-directory": "/srv/spr2026_taklimat",
"response-message": "Deploy dimulakan.",
"trigger-rule": {
"and": [
{
"match": {
"type": "payload-hmac-sha256",
"secret": "{{ .Env.WEBHOOK_SECRET }}",
"parameter": {
"source": "header",
"name": "X-Hub-Signature-256"
}
}
},
{
"match": {
"type": "value",
"value": "refs/heads/master",
"parameter": {
"source": "payload",
"name": "ref"
}
}
}
]
}
}
]