tambah webhook
This commit is contained in:
18
docker/webhook/hooks.json
Normal file
18
docker/webhook/hooks.json
Normal file
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": "deploy",
|
||||
"execute-command": "/deploy.sh",
|
||||
"command-working-directory": "/srv/ecert",
|
||||
"response-message": "Deploy dimulakan.",
|
||||
"trigger-rule": {
|
||||
"match": {
|
||||
"type": "payload-hmac-sha256",
|
||||
"secret": "{{ .Env.WEBHOOK_SECRET }}",
|
||||
"parameter": {
|
||||
"source": "header",
|
||||
"name": "X-Hub-Signature-256"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user