diff --git a/webhook/README.md b/webhook/README.md index 352ec19..6a0493c 100644 --- a/webhook/README.md +++ b/webhook/README.md @@ -54,6 +54,8 @@ echo 'hello world' ``` $ cd ~/fig/webhook/ +$ chmod +x scripts/test.sh + $ docker-compose up -d Creating webhook_webhook_1... diff --git a/webhook/scripts/hooks.json b/webhook/scripts/hooks.json new file mode 100644 index 0000000..c8f7855 --- /dev/null +++ b/webhook/scripts/hooks.json @@ -0,0 +1,7 @@ +[ + { + "id": "test", + "execute-command": "/scripts/test.sh", + "command-working-directory": "/scripts" + } +] diff --git a/webhook/scripts/test.sh b/webhook/scripts/test.sh new file mode 100644 index 0000000..985e2ad --- /dev/null +++ b/webhook/scripts/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo 'hello world' +