ingress/root/etc/webhook/hooks.yaml

25 lines
649 B
YAML
Raw Normal View History

2024-09-18 18:44:41 +00:00
- id: deploy
2024-09-19 18:42:30 +00:00
execute-command: "/var/ingress.tjo.cloud/install.sh"
2024-09-18 18:44:41 +00:00
command-working-directory: "/var/ingress.tjo.cloud/"
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-sha256
secret: "FIGURE_OUT_HOW_TO_SET_THIS"
parameter:
source: header
name: X-Forgejo-Signature
- match:
type: value
value: "push"
parameter:
source: ref
ref: "ref/heads/main"