2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-29 22:41:19 +01:00

update webhook

This commit is contained in:
kev
2024-02-20 18:27:53 +08:00
parent 3bdbe90434
commit a8a528b6b4
6 changed files with 65 additions and 62 deletions

View File

@@ -1 +0,0 @@
[]

13
webhook/data/hooks.yaml Normal file
View File

@@ -0,0 +1,13 @@
- id: test
execute-command: /etc/webhook/test.sh
pass-file-to-command:
- source: entire-payload
envname: HOOK_PAYLOAD
command-working-directory: /etc/webhook
include-command-output-in-response: true
- id: osmand
execute-command: '/bin/echo'
pass-arguments-to-command:
- source: entire-query
response-message: "OK\n"

View File

@@ -1,5 +1,3 @@
#!/bin/bash
echo 'hello world'
cat $HOOK_PAYLOAD