chore: add notification to deploy script
Some checks failed
Deploy eolas-api / deploy (push) Failing after 35s

This commit is contained in:
Thomas Bishop 2025-12-12 17:46:21 +00:00
parent 9d92a20872
commit aa9dcd7979

View file

@ -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