From 8a47a293e8c3ad0c0027eb37f946f6aabee44b7f Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Tue, 18 Nov 2025 17:59:20 +0000 Subject: [PATCH] infra: add notification to deploy action --- .forgejo/workflows/deploy.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 4202d73..5c102c7 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -20,3 +20,18 @@ jobs: ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{ vars.VPS_DEPLOY_USER }} "bash -c 'rm -rf /var/www/systemsobscure.blog/*'" scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/systemsobscure.blog/ rm /tmp/ssh_key + - name: Notify success + if: success() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟩 systemsobscure.blog successfully deployed" \ + https://ntfy.systemsobscure.net/test + + - name: Notify failure + if: failure() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟥 systemsobscure.blog deployment failed. See Forgejo Action logs." \ + https://ntfy.systemsobscure.net/test