chore: add notification to deploy script
Some checks failed
Deploy eolas-api / deploy (push) Failing after 35s
Some checks failed
Deploy eolas-api / deploy (push) Failing after 35s
This commit is contained in:
parent
9d92a20872
commit
aa9dcd7979
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue