forked from camptocamp/docker-g10k-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
g10k.yaml.tmpl
67 lines (64 loc) · 1.54 KB
/
g10k.yaml.tmpl
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
- id: github
execute-command: /push-to-g10k.sh
command-working-directory: /
pass-arguments-to-command:
- source: payload
name: ref
- source: payload
name: repository.ssh_url
trigger-rule:
and:
- match:
type: payload-hash-sha1
secret: "{{ getenv "HOOK_SECRET" | js }}"
parameter:
source: header
name: X-Hub-Signature
- id: gogs
execute-command: /push-to-g10k.sh
command-working-directory: /
pass-arguments-to-command:
- source: payload
name: ref
- source: payload
name: repository.ssh_url
trigger-rule:
and:
- match:
type: payload-hash-sha256
secret: "{{ getenv "HOOK_SECRET" | js }}"
parameter:
source: header
name: X-Gogs-Signature
- id: gitlab
execute-command: /push-to-g10k.sh
command-working-directory: /
pass-arguments-to-command:
- source: payload
name: ref
- source: payload
name: repository.git_ssh_url
trigger-rule:
and:
- match:
type: value
value: "{{ getenv "HOOK_SECRET" | js }}"
parameter:
source: header
name: X-Gitlab-Token
- id: payload
execute-command: /push-to-g10k.sh
command-working-directory: /
pass-arguments-to-command:
- source: payload
name: ref
- source: payload
name: repository.ssh_url
trigger-rule:
and:
- match:
type: value
value: "{{ getenv "HOOK_SECRET" | js }}"
parameter:
source: payload
name: secret