webhook 2.0.0

This commit is contained in:
Adnan Hajdarevic 2015-03-13 01:31:49 +01:00
parent 489750a710
commit 90528b2ed9
7 changed files with 377 additions and 630 deletions

View file

@ -1,18 +1,52 @@
[
{
"id": "webhook",
"command": "/home/adnan/redeploy-go-webhook.sh",
"args": [
"head"
"execute-command": "/home/adnan/redeploy-go-webhook.sh",
"command-working-directory": "/home/adnan/go",
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "head"
},
{
"source": "payload",
"name": "pusher.name"
},
{
"source": "payload",
"name": "pusher.email"
}
],
"cwd": "/home/adnan/go",
"trigger-rule":
{
"match":
{
"parameter": "ref",
"value": "refs/heads/master"
}
"and":
[
{
"match":
{
"type": "payload-hash-sha1",
"secret": "mysecret",
"parameter":
{
"source": "header",
"name": "X-Hub-Signature"
}
}
},
{
"match":
{
"type": "value",
"value": "refs/heads/master",
"parameter":
{
"source": "payload",
"name": "ref"
}
}
}
]
}
}
]