diff --git a/deploy/hooks-lxc106.json b/deploy/hooks-lxc106.json index c1a589d..bf3603f 100644 --- a/deploy/hooks-lxc106.json +++ b/deploy/hooks-lxc106.json @@ -30,5 +30,35 @@ } } } + }, + { + "id": "lotus-deploy", + "execute-command": "/usr/local/bin/lotus_deploy.sh", + "command-working-directory": "/opt/lotus-cinny", + "response-message": "Deploying Lotus Chat...", + "trigger-rule": { + "and": [ + { + "match": { + "type": "payload-hash-sha256", + "secret": "7b333a1bf4c02aacece65de00e6d8c3e86881f1254f4efa91aeddb82b67dd50f", + "parameter": { + "source": "header", + "name": "X-Gitea-Signature" + } + } + }, + { + "match": { + "type": "value", + "value": "refs/heads/lotus", + "parameter": { + "source": "payload", + "name": "ref" + } + } + } + ] + } } ]