mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
Add scripts
This commit is contained in:
@@ -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'
|
||||||
|
|
||||||
Reference in New Issue
Block a user