Commit 1a780f49cff6

Vincent Demeester <vincent@sbr.pm>
2026-01-28 16:43:23
fix(kerkouane): notify only on gitmal failure
Remove success notifications from git-notify service to reduce noise. Only failures are now sent to ntfy. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 087231c
Changed files (1)
systems
kerkouane
systems/kerkouane/extra.nix
@@ -173,17 +173,8 @@ in
         JOB_TYPE=$(echo "$UNIT_NAME" | cut -d'-' -f2)
         REPO=$(echo "$UNIT_NAME" | cut -d'-' -f3)
 
-        if [ "$RESULT" = "success" ]; then
-          ${pkgs.curl}/bin/curl -s \
-            -H "Authorization: Bearer $(${pkgs.coreutils}/bin/tr -d '\n' < ${
-              config.age.secrets."ntfy-token".path
-            })" \
-            -H "Title: ✅ Git $JOB_TYPE Success: $REPO ($DURATION_STR)" \
-            -H "Tags: white_check_mark,git,$JOB_TYPE" \
-            -H "Priority: default" \
-            -d "Job $UNIT_NAME completed successfully in $DURATION_STR (exit code: $EXIT_CODE)" \
-            "https://ntfy.sbr.pm/git-builds" || true
-        else
+        # Only notify on failure
+        if [ "$RESULT" != "success" ]; then
           ${pkgs.curl}/bin/curl -s \
             -H "Authorization: Bearer $(${pkgs.coreutils}/bin/tr -d '\n' < ${
               config.age.secrets."ntfy-token".path