From 2e0456b081cb67c84b5bfaededecae03196ceaab Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 27 Jan 2026 17:55:38 +0100 Subject: [PATCH] gotify --- .gitea/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2c7b5702..a9f3883a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -214,3 +214,32 @@ jobs: echo "║ ❌ DEPLOYMENT FAILED ║" fi echo "╚══════════════════════════════════════════════════════════════════════════════╝" + + # ═══════════════════════════════════════════════════════════════════════════════ + # NOTIFICATION: Gotify + # ═══════════════════════════════════════════════════════════════════════════════ + - name: 🔔 Gotify Notification (Success) + if: success() + run: | + curl -X POST "https://gotify.infra.mintel.me/message?token=${{ secrets.GOTIFY_TOKEN }}" \ + -F "title=✅ Deployment Success: ${{ github.repository }}" \ + -F "message=The deployment of ${{ github.repository }} (branch: ${{ github.ref }}) was successful. + + Commit: ${{ github.sha }} + Actor: ${{ github.actor }} + Run ID: ${{ github.run_id }}" \ + -F "priority=5" + + - name: 🔔 Gotify Notification (Failure) + if: failure() + run: | + curl -X POST "https://gotify.infra.mintel.me/message?token=${{ secrets.GOTIFY_TOKEN }}" \ + -F "title=❌ Deployment Failed: ${{ github.repository }}" \ + -F "message=The deployment of ${{ github.repository }} (branch: ${{ github.ref }}) failed! + + Commit: ${{ github.sha }} + Actor: ${{ github.actor }} + Run ID: ${{ github.run_id }} + + Please check the logs for details." \ + -F "priority=8"