This commit is contained in:
Saufi
2026-06-16 16:35:16 +08:00
parent d3d21e6c53
commit fb4739e407
7 changed files with 177 additions and 1 deletions

27
deploy/hooks.json Normal file
View 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" }
}
}
]
}
}
]