From 5918b40d1e738e849bdc3b767f735438cb9ee57f Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Wed, 26 Nov 2025 17:28:44 +0000 Subject: [PATCH] infra: add success/fail notifcation on deploy --- .forgejo/workflows/deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 4edf26f..41f05c9 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -19,3 +19,19 @@ jobs: ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'cd /var/www/eolas-app && rm -rf * .[^.]*'" scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/eolas-app/ rm /tmp/ssh_key + + - name: Notify success + if: success() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟩 eolas-app successfully deployed" \ + https://ntfy.systemsobscure.net/eolas + + - name: Notify failure + if: failure() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟥 An error occurred deploying eolas-app. See Forgejo Action logs." \ + https://ntfy.systemsobscure.net/eolas