infra(webhook): docker-compose.yml
This commit is contained in:
@@ -1,17 +1,31 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"id": "bruchtal-deploy",
|
"id": "bruchtal-deploy",
|
||||||
"execute-command": "/docker/deploy/deploy-bruchtal.sh",
|
"execute-command": "/docker/Bruchtal/deploy/deploy-bruchtal.sh",
|
||||||
"command-working-directory": "/docker/Bruchtal",
|
"command-working-directory": "/docker/Bruchtal",
|
||||||
"trigger-rule": {
|
"trigger-rule": {
|
||||||
"match": {
|
"and": [
|
||||||
"type": "payload-hmac-sha256",
|
{
|
||||||
"secret": "!!Zazen17-Doshin17**12345",
|
"match": {
|
||||||
"parameter": {
|
"type": "payload-hmac-sha256",
|
||||||
"source": "header",
|
"secret": "!!Zazen17**",
|
||||||
"name": "X-Gitea-Signature"
|
"parameter": {
|
||||||
|
"source": "header",
|
||||||
|
"name": "X-Gitea-Signature"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"match": {
|
||||||
|
"type": "value",
|
||||||
|
"parameter": {
|
||||||
|
"source": "payload",
|
||||||
|
"name": "ref"
|
||||||
|
},
|
||||||
|
"value": "refs/heads/main"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
12
docker/bruchtal-webhook/docker-compose.yml
Normal file
12
docker/bruchtal-webhook/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
bruchtal-webhook:
|
||||||
|
image: webhook:2.8.1
|
||||||
|
container_name: bruchtal-webhook
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "9001:9001"
|
||||||
|
volumes:
|
||||||
|
- /docker/Bruchtal/deploy/hooks.json:/hooks/hooks.json:ro
|
||||||
|
- /docker/Bruchtal:/docker/Bruchtal:rw
|
||||||
|
command: ["-hooks", "/hooks/hooks.json", "-verbose", "-port", "9001", "-ip", "0.0.0.0"]
|
||||||
Reference in New Issue
Block a user