mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 22:28:28 +01:00
Compare commits
No commits in common. "8855886547499c54c92e6ffd7baf5ad018f52a71" and "e728fe43bbafec045abbbbdf0608814037e36ec0" have entirely different histories.
8855886547
...
e728fe43bb
3 changed files with 1 additions and 42 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
|
@ -105,30 +105,3 @@ jobs:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- name: Push to deploy branch
|
- name: Push to deploy branch
|
||||||
run: git push origin HEAD:deploy --force
|
run: git push origin HEAD:deploy --force
|
||||||
notify:
|
|
||||||
if: always()
|
|
||||||
needs: [deploy]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify success
|
|
||||||
if: needs.deploy.result == 'success'
|
|
||||||
run: |
|
|
||||||
curl -s \
|
|
||||||
-H "Title: CI: Deploy succeeded" \
|
|
||||||
-H "Priority: low" \
|
|
||||||
-H "Tags: white_check_mark" \
|
|
||||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
|
||||||
-H "Markdown: yes" \
|
|
||||||
-d "Commit \`${GITHUB_SHA::7}\` deployed successfully." \
|
|
||||||
https://ntfy.sh/splitleaf
|
|
||||||
- name: Notify failure
|
|
||||||
if: needs.deploy.result != 'success'
|
|
||||||
run: |
|
|
||||||
curl -s \
|
|
||||||
-H "Title: CI: Deploy failed" \
|
|
||||||
-H "Priority: default" \
|
|
||||||
-H "Tags: rotating_light" \
|
|
||||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
|
||||||
-H "Markdown: yes" \
|
|
||||||
-d "Commit \`${GITHUB_SHA::7}\` failed to deploy." \
|
|
||||||
https://ntfy.sh/splitleaf
|
|
||||||
|
|
|
||||||
|
|
@ -75,17 +75,6 @@ in
|
||||||
notification = {
|
notification = {
|
||||||
topic = "splitleaf";
|
topic = "splitleaf";
|
||||||
priority = "default";
|
priority = "default";
|
||||||
templates.title = ''{{ index .Annotations "summary" }}'';
|
|
||||||
tags = [
|
|
||||||
{
|
|
||||||
condition = ''status == "resolved"'';
|
|
||||||
tag = "white_check_mark";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
condition = ''status == "firing"'';
|
|
||||||
tag = "rotating_light";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -89,10 +89,7 @@ in
|
||||||
expr = "up == 0";
|
expr = "up == 0";
|
||||||
for = "2m";
|
for = "2m";
|
||||||
labels.severity = "critical";
|
labels.severity = "critical";
|
||||||
annotations = {
|
annotations.summary = "Instance {{ $labels.instance }} down";
|
||||||
summary = "{{ $labels.instance }} is DOWN";
|
|
||||||
description = "{{ $labels.instance }} of job {{ $labels.job }} has been down for more than 2 minutes.";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue