From aa9dcd7979334148d8effb690fbcb758e87b5eba Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Fri, 12 Dec 2025 17:46:21 +0000 Subject: [PATCH] chore: add notification to deploy script --- .forgejo/workflows/deploy.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index d8f72c7..65902d7 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -32,3 +32,19 @@ jobs: ssh -i /tmp/ssh_key -o StrictHostKeyChecking=no ${{vars.VPS_DEPLOY_USER}} "bash -l -c 'sudo /usr/bin/systemctl daemon-reload && sudo /usr/bin/systemctl start eolas-api.service'" rm /tmp/ssh_key + + - name: Notify success + if: success() + run: | + curl -u thomas:${{ secrets.NTFY_PASSWORD }} \ + -H "Tags: Forgejo Runner" \ + -d "🟩 eolas-api 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-api. See Forgejo Action logs." \ + https://ntfy.systemsobscure.net/eolas