1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00

update webhook

This commit is contained in:
kev 2019-01-09 19:09:32 +08:00
parent a8efbaf8d8
commit 87a65e512e
2 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,8 @@ hooks.json
{ {
"id": "test", "id": "test",
"execute-command": "/etc/webhook/test.sh", "execute-command": "/etc/webhook/test.sh",
"command-working-directory": "/etc/webhook" "command-working-directory": "/etc/webhook",
"include-command-output-in-response": true
} }
] ]
``` ```
@ -59,6 +60,7 @@ $ docker-compose up -d
Creating webhook_webhook_1... Creating webhook_webhook_1...
$ curl http://localhost:9000/hooks/test $ curl http://localhost:9000/hooks/test
hello world
$ docker-compose logs $ docker-compose logs
Attaching to webhook_webhook_1 Attaching to webhook_webhook_1

View File

@ -2,6 +2,7 @@
{ {
"id": "test", "id": "test",
"execute-command": "/etc/webhook/test.sh", "execute-command": "/etc/webhook/test.sh",
"command-working-directory": "/etc/webhook" "command-working-directory": "/etc/webhook",
"include-command-output-in-response": true
} }
] ]