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"