Compare commits
2 Commits
59f2639061
...
d234fa53d9
| Author | SHA1 | Date | |
|---|---|---|---|
| d234fa53d9 | |||
| ee3a24b5da |
@@ -36,8 +36,11 @@ jobs:
|
|||||||
- name: Notify success
|
- name: Notify success
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
|
TOPIC=$(cat /run/agenix/ntfy-alerts-topic | tr -d '[:space:]')
|
||||||
|
TOKEN=$(cat /run/agenix/ntfy-alerts-token | tr -d '[:space:]')
|
||||||
curl -sf -X POST \
|
curl -sf -X POST \
|
||||||
"https://ntfy.sigkill.computer/deployments" \
|
"https://ntfy.sigkill.computer/$TOPIC" \
|
||||||
|
-H "Authorization: Bearer $TOKEN" \
|
||||||
-H "Title: [muffin] Deploy succeeded" \
|
-H "Title: [muffin] Deploy succeeded" \
|
||||||
-H "Priority: default" \
|
-H "Priority: default" \
|
||||||
-H "Tags: white_check_mark" \
|
-H "Tags: white_check_mark" \
|
||||||
@@ -46,9 +49,12 @@ jobs:
|
|||||||
- name: Notify failure
|
- name: Notify failure
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
|
TOPIC=$(cat /run/agenix/ntfy-alerts-topic 2>/dev/null | tr -d '[:space:]')
|
||||||
|
TOKEN=$(cat /run/agenix/ntfy-alerts-token 2>/dev/null | tr -d '[:space:]')
|
||||||
curl -sf -X POST \
|
curl -sf -X POST \
|
||||||
"https://ntfy.sigkill.computer/deployments" \
|
"https://ntfy.sigkill.computer/$TOPIC" \
|
||||||
|
-H "Authorization: Bearer $TOKEN" \
|
||||||
-H "Title: [muffin] Deploy FAILED" \
|
-H "Title: [muffin] Deploy FAILED" \
|
||||||
-H "Priority: urgent" \
|
-H "Priority: urgent" \
|
||||||
-H "Tags: rotating_light" \
|
-H "Tags: rotating_light" \
|
||||||
-d "server-config deploy failed at commit ${GITHUB_SHA::8}"
|
-d "server-config deploy failed at commit ${GITHUB_SHA::8}" || true
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
# Hosts entries for CI/CD deploy targets
|
# Hosts entries for CI/CD deploy targets
|
||||||
|
networking.hosts."192.168.1.50" = [ "server-public" ];
|
||||||
networking.hosts."192.168.1.223" = [ "desktop" ];
|
networking.hosts."192.168.1.223" = [ "desktop" ];
|
||||||
|
|
||||||
services.kmscon.enable = true;
|
services.kmscon.enable = true;
|
||||||
|
|||||||
@@ -68,19 +68,19 @@
|
|||||||
group = "root";
|
group = "root";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ntfy-alerts secrets
|
# ntfy-alerts secrets (group-readable for CI runner notifications)
|
||||||
ntfy-alerts-topic = {
|
ntfy-alerts-topic = {
|
||||||
file = ../secrets/ntfy-alerts-topic.age;
|
file = ../secrets/ntfy-alerts-topic.age;
|
||||||
mode = "0400";
|
mode = "0440";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "gitea-runner";
|
||||||
};
|
};
|
||||||
|
|
||||||
ntfy-alerts-token = {
|
ntfy-alerts-token = {
|
||||||
file = ../secrets/ntfy-alerts-token.age;
|
file = ../secrets/ntfy-alerts-token.age;
|
||||||
mode = "0400";
|
mode = "0440";
|
||||||
owner = "root";
|
owner = "root";
|
||||||
group = "root";
|
group = "gitea-runner";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Firefox Sync server secrets (SYNC_MASTER_SECRET)
|
# Firefox Sync server secrets (SYNC_MASTER_SECRET)
|
||||||
|
|||||||
Reference in New Issue
Block a user