s3ntry
Deploys and monitoring for my homelab
The deployment pipeline and monitoring for alexandria. A push to main is tested and deployed with no manual steps, and a Go health daemon watches every service and alerts Slack and Discord when one goes down or recovers.

Details
- Self-hosted GitHub Actions runner on alexandria with a CI gate (go vet and unit tests) and a rollback path. Push to main deploys with no manual intervention.
- Deploys run as a dedicated non-root user with SSH deploy keys, and that user deliberately has no sudo anywhere in the pipeline.
- Go health daemon (one static binary, one goroutine per service) polls services concurrently and tracks up/down state and latency, shown on a live status page.
- It also checks the host itself: connectivity, whether a reboot is required, and pending apt updates.
- The daemon runs as a systemd user service rather than in Docker, because a container would report its own reboot and update state, not the host’s.
- Slack and Discord webhook alerts on down and recovery, so “is it up?” never needs an SSH session.
- Proved end to end by deploying 1337 to production on alexandria, then deliberately breaking it to time the alerts.