ntfy notif
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
All checks were successful
Activate Homelab Configuration / rebuild (push) Successful in 19s
This commit is contained in:
parent
2e11be00c4
commit
b4edc1439e
1 changed files with 8 additions and 7 deletions
|
|
@ -27,14 +27,15 @@ jobs:
|
||||||
root@localhost \
|
root@localhost \
|
||||||
"bash -lc 'nixos-rebuild switch --refresh --flake git+http://localhost:5080/satr14/nix-flake#homelab -L'"
|
"bash -lc 'nixos-rebuild switch --refresh --flake git+http://localhost:5080/satr14/nix-flake#homelab -L'"
|
||||||
|
|
||||||
- name: Show generation
|
- name: Notify on failure
|
||||||
if: always()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
ssh -i ./ssh/deploy_key \
|
curl -s -X POST https://notify.proxy.satr14.my.id/git-flake-updates \
|
||||||
-o PasswordAuthentication=no \
|
-H "Title: NixOS Homelab Rebuild Failed" \
|
||||||
-o StrictHostKeyChecking=no \
|
-H "Priority: high" \
|
||||||
-o UserKnownHostsFile=/dev/null \
|
-H "Tags: x" \
|
||||||
root@localhost "bash -lc 'nixos-version'"
|
-H "Actions: view, View Logs, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}; view, View Commit, ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}" \
|
||||||
|
-d "${{ github.event.head_commit.message }}"
|
||||||
|
|
||||||
- name: Clean Up
|
- name: Clean Up
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue