feat(webhook): Forgejo → Gotify notification bridge
CI / CI (pull_request) Failing after 21m42s

POST /v1/webhooks/forgejo receives Forgejo payloads, verifies HMAC
SHA256 signature, formats event into Gotify push notification.

Supported events: push, pull_request, issues, issue_comment,
pull_request_review_comment, release.

Env vars: GOTIFY_URL, GOTIFY_APP_TOKEN, FORGEJO_WEBHOOK_SECRET
Secret: gotify-webhook-secret in api namespace
This commit is contained in:
Admin Bot
2026-09-16 07:49:15 +09:00
parent 3c6c855761
commit 2171424220
3 changed files with 245 additions and 2 deletions
+16
View File
@@ -76,6 +76,22 @@ spec:
value: "1.0.0"
- name: OTEL_ENVIRONMENT
value: "production"
# Gotify integration — Forgejo webhook → push notifications
- name: GOTIFY_URL
valueFrom:
secretKeyRef:
name: gotify-webhook-secret
key: gotify-url
- name: GOTIFY_APP_TOKEN
valueFrom:
secretKeyRef:
name: gotify-webhook-secret
key: gotify-app-token
- name: FORGEJO_WEBHOOK_SECRET
valueFrom:
secretKeyRef:
name: gotify-webhook-secret
key: forgejo-webhook-secret
volumeMounts:
- name: config
mountPath: /etc/gateway