From 066d6cae67a7a53ea284d8fb83314d8cd9164ea0 Mon Sep 17 00:00:00 2001 From: Neon Vortex Date: Sat, 22 Nov 2025 23:06:42 -0500 Subject: [PATCH] Fix Gotify notifications with correct API format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use /message endpoint with form data instead of JSON - Update notification provider to use correct Gotify URL - Fix priority levels for different notification types - Test notifications should now work properly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- flux-notification-provider.yaml | 4 +--- webhook-build-trigger.yaml | 36 +++++++++++---------------------- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/flux-notification-provider.yaml b/flux-notification-provider.yaml index 3dfb22a..99cc315 100644 --- a/flux-notification-provider.yaml +++ b/flux-notification-provider.yaml @@ -15,6 +15,4 @@ metadata: namespace: flux-system spec: type: generic - address: https://notify.caffeinetux.com - secretRef: - name: notify-token + address: https://notify.caffeinetux.com/message?token=APMvTuncQJmm6vd diff --git a/webhook-build-trigger.yaml b/webhook-build-trigger.yaml index baad6b2..5682ad4 100644 --- a/webhook-build-trigger.yaml +++ b/webhook-build-trigger.yaml @@ -34,14 +34,10 @@ data: echo "Creating build job: $JOB_NAME" # Send start notification - curl -s -X POST "https://notify.caffeinetux.com?token=APMvTuncQJmm6vd" \ - -H "Content-Type: application/json" \ - -d "{ - \"title\": \"🔨 Neon Vortex Build Started\", - \"message\": \"Commit: ${GIT_SHORT} by ${GIT_AUTHOR}\\n${GIT_MSG}\", - \"priority\": 3, - \"tags\": [\"building\"] - }" || echo "Notification failed" + curl -s -X POST "https://notify.caffeinetux.com/message?token=APMvTuncQJmm6vd" \ + -F "title=🔨 Neon Vortex Build Started" \ + -F "message=Commit: ${GIT_SHORT} by ${GIT_AUTHOR} - ${GIT_MSG}" \ + -F "priority=5" || echo "Notification failed" # Create the build job kubectl apply -f - <