webhook
This commit is contained in:
27
deploy/hooks.json
Normal file
27
deploy/hooks.json
Normal file
@@ -0,0 +1,27 @@
|
||||
[
|
||||
{
|
||||
"id": "myansuran-deploy",
|
||||
"execute-command": "/opt/myansuran/deploy/deploy.sh",
|
||||
"command-working-directory": "/opt/myansuran",
|
||||
"response-message": "Deploy myansuran dicetuskan.",
|
||||
"include-command-output-in-response": false,
|
||||
"trigger-rule": {
|
||||
"and": [
|
||||
{
|
||||
"match": {
|
||||
"type": "payload-hmac-sha256",
|
||||
"secret": "GANTI_DENGAN_SECRET_RAHSIA",
|
||||
"parameter": { "source": "header", "name": "X-Gitea-Signature" }
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": {
|
||||
"type": "value",
|
||||
"value": "refs/heads/main",
|
||||
"parameter": { "source": "payload", "name": "ref" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user