2026-03-18 11:41:32 -04:00
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"id": "matrix-deploy",
|
|
|
|
|
"execute-command": "/usr/local/bin/matrix-deploy.sh",
|
|
|
|
|
"command-working-directory": "/opt/matrix-config",
|
|
|
|
|
"response-message": "Deploying matrix hookshot transforms...",
|
|
|
|
|
"trigger-rule": {
|
|
|
|
|
"match": {
|
|
|
|
|
"type": "payload-hash-sha256",
|
2026-09-23 22:29:52 -04:00
|
|
|
"secret": "{{ getenv "MATRIX_DEPLOY_SECRET" | js }}",
|
2026-03-18 11:41:32 -04:00
|
|
|
"parameter": {
|
|
|
|
|
"source": "header",
|
|
|
|
|
"name": "X-Gitea-Signature"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-09-23 22:29:52 -04:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"id": "151-config-deploy",
|
|
|
|
|
"execute-command": "/usr/local/bin/matrix_deploy.sh",
|
|
|
|
|
"command-working-directory": "/opt/pve-infra",
|
|
|
|
|
"response-message": "Deploying matrix config...",
|
|
|
|
|
"trigger-rule": {
|
|
|
|
|
"and": [
|
|
|
|
|
{
|
|
|
|
|
"match": {
|
|
|
|
|
"type": "payload-hash-sha256",
|
|
|
|
|
"secret": "{{ getenv "CONFIG_DEPLOY_SECRET" | js }}",
|
|
|
|
|
"parameter": {
|
|
|
|
|
"source": "header",
|
|
|
|
|
"name": "X-Gitea-Signature"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"match": {
|
|
|
|
|
"type": "value",
|
|
|
|
|
"value": "refs/heads/main",
|
|
|
|
|
"parameter": {
|
|
|
|
|
"source": "payload",
|
|
|
|
|
"name": "ref"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
2026-03-18 11:41:32 -04:00
|
|
|
}
|
|
|
|
|
]
|