From 87244d976325d3154cd88605ff2992804fa8ee72 Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Sun, 23 Nov 2025 15:17:11 +0000 Subject: [PATCH] add id for notifications and actually pipe errors properly --- commit.sh | 4 ++-- tangled-on-commit.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commit.sh b/commit.sh index 6e81604..1101afc 100755 --- a/commit.sh +++ b/commit.sh @@ -12,7 +12,7 @@ git reset --hard origin/main echo "git fetched!" -curl -d "name=pi%20git%20updated&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config" http://compuper:6500/notify +curl -d "name=pi%20git%20updated&body=fetched%20latest%20git%20commit%20for%20vielle.dev/pi-config&key=pi/commit/git" http://compuper:6500/notify # restart/rebuild all containers docker compose build --no-cache @@ -21,6 +21,6 @@ docker compose up -d --force-recreate --remove-orphans # clear out dockerfiles to stop my drive exploding docker system prune -af -curl -d "name=pi%20ready&body=finished%20building%20docker" http://compuper:6500/notify +curl -d "name=pi%20ready&body=finished%20building%20docker&key=pi/commit/build" http://compuper:6500/notify exit 0 \ No newline at end of file diff --git a/tangled-on-commit.json b/tangled-on-commit.json index 943d9c2..01b830f 100644 --- a/tangled-on-commit.json +++ b/tangled-on-commit.json @@ -1,5 +1,5 @@ { "handle": "vielle.dev", "repo_name": "pi-config", - "shell": "./commit.sh 2>&1 >> commit-out.txt" + "shell": "./commit.sh >> commit-out.txt 2>&1" } -- 2.51.2