Fix error on unrecognized configuration keys

- Error while loading configuration with unrecognized keys
- Do not start if failed to load configuration from file
This commit is contained in:
Barak Amar 2022-10-11 10:04:37 +03:00
parent dab29e7267
commit d7367bcb8b
4 changed files with 49 additions and 13 deletions

View file

@ -0,0 +1,28 @@
- id: webhook
unrecognized-execute-command: /home/adnan/redeploy-go-webhook.sh
command-working-directory: /home/adnan/go
response-message: I got the payload!
response-headers:
- name: Access-Control-Allow-Origin
value: '*'
pass-arguments-to-command:
- source: payload
name: head_commit.id
- source: payload
name: pusher.name
- source: payload
name: pusher.email
trigger-rule:
and:
- match:
type: payload-hmac-sha1
secret: mysecret
parameter:
source: header
name: X-Hub-Signature
- match:
type: value
value: refs/heads/master
parameter:
source: payload
name: ref