-
Notifications
You must be signed in to change notification settings - Fork 0
/
hooks.json
45 lines (45 loc) · 915 Bytes
/
hooks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[
{
"id": "redeploy-webhook",
"command-working-directory": ".",
"execute-command": "./redeploy.sh",
"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-hash-sha1",
"secret": "mysecret",
"parameter": {
"source": "header",
"name": "X-Hub-Signature"
}
}
},
{
"match": {
"type": "value",
"value": "refs/heads/master",
"parameter": {
"source": "payload",
"name": "ref"
}
}
}
]
}
}
]