From 8971c903967bae094ed04d2f355abc9f579d2b04 Mon Sep 17 00:00:00 2001 From: Alexander Serkin Date: Mon, 25 Jan 2016 13:16:08 +0300 Subject: [PATCH] Add scripts --- webhook/README.md | 2 ++ webhook/scripts/hooks.json | 7 +++++++ webhook/scripts/test.sh | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 webhook/scripts/hooks.json create mode 100644 webhook/scripts/test.sh 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' +