Deploy services independently by changed paths

This commit is contained in:
Frank committed 2026-08-25 20:13:33 -07:00
1 parent 2277a2e9ac
commit 1ba47e4d22
18 files changed
+1462 -894

No files matched your search

+7 -5
View File
@@ -10,10 +10,12 @@ load helpers
@test "deploy.sh ships the homepage (assets, timer, basicauth hash, deployed.js)" {
local d="$REPO_ROOT/scripts/deploy.sh"
grep -q "/srv/homepage" "$d"
grep -q "homepage-status" "$d"
grep -q "CADDY_BASICAUTH_HASH" "$d"
grep -q "deployed.js" "$d"
local r="$REPO_ROOT/scripts/deploy-remote.sh"
grep -q "deploy-remote.sh" "$d"
grep -q "/srv/homepage" "$r"
grep -q "homepage-status" "$r"
grep -q "CADDY_BASICAUTH_HASH" "$r"
grep -q "deployed.js" "$r"
}
@test "the checker runs as a systemd timer pointing at the checker" {
@@ -27,5 +29,5 @@ load helpers
}
@test "deploy.sh is git-driven: it pulls main on the target" {
grep -q "git pull origin main" "$REPO_ROOT/scripts/deploy.sh"
grep -q "git pull --ff-only origin main" "$REPO_ROOT/scripts/deploy.sh"
}