ingress/root/etc/webhook/hooks.yaml
2024-09-19 20:42:30 +02:00

24 lines
649 B
YAML

- id: deploy
execute-command: "/var/ingress.tjo.cloud/install.sh"
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"