mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
update webhook
This commit is contained in:
parent
a8efbaf8d8
commit
87a65e512e
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user