infra: add notification to deploy action
All checks were successful
Deploy Blog / deploy (push) Successful in 1m35s
All checks were successful
Deploy Blog / deploy (push) Successful in 1m35s
This commit is contained in:
parent
003c994d7a
commit
8a47a293e8
1 changed files with 15 additions and 0 deletions
|
|
@ -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/*'"
|
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/
|
scp -i /tmp/ssh_key -o StrictHostKeyChecking=no -r dist/* ${{ vars.VPS_DEPLOY_USER }}:/var/www/systemsobscure.blog/
|
||||||
rm /tmp/ssh_key
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue