mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-04 03:48:55 +02:00
Merge pull request #12 from serkin/add_scripts_to_webhook
Add template script and hook files
This commit is contained in:
commit
fb31400650
@ -54,6 +54,8 @@ echo 'hello world'
|
|||||||
```
|
```
|
||||||
$ cd ~/fig/webhook/
|
$ cd ~/fig/webhook/
|
||||||
|
|
||||||
|
$ chmod +x scripts/test.sh
|
||||||
|
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
Creating webhook_webhook_1...
|
Creating webhook_webhook_1...
|
||||||
|
|
||||||
|
7
webhook/scripts/hooks.json
Normal file
7
webhook/scripts/hooks.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "test",
|
||||||
|
"execute-command": "/scripts/test.sh",
|
||||||
|
"command-working-directory": "/scripts"
|
||||||
|
}
|
||||||
|
]
|
3
webhook/scripts/test.sh
Normal file
3
webhook/scripts/test.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
echo 'hello world'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user