Files
matrix/deploy/hooks-lxc110.json
T

49 lines
1.2 KiB
JSON
Raw Normal View History

[
{
"id": "matrix-deploy",
"execute-command": "/usr/local/bin/matrix-deploy.sh",
"command-working-directory": "/opt/matrix-config",
"response-message": "Deploying draupnir config...",
"trigger-rule": {
"match": {
"type": "payload-hash-sha256",
"secret": "{{ getenv "MATRIX_DEPLOY_SECRET" | js }}",
"parameter": {
"source": "header",
"name": "X-Gitea-Signature"
}
}
}
},
{
"id": "110-config-deploy",
"execute-command": "/usr/local/bin/draupnir_deploy.sh",
"command-working-directory": "/opt/pve-infra",
"response-message": "Deploying draupnir 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"
}
}
}
]
}
}
]