ci(nightly): reload Caddy before smoke test #537

Merged
marcel merged 10 commits from fix/nightly-caddy-reload into main 2026-05-12 07:51:13 +02:00
Showing only changes of commit d750d5cee2 - Show all commits

View File

@@ -128,11 +128,23 @@ jobs:
# header or a still-proxied /actuator route rather than confirming
# the current config is live.
#
# `systemctl reload caddy` sends SIGHUP; Caddy re-reads /etc/caddy/Caddyfile
# (symlinked to infra/caddy/Caddyfile) without dropping connections.
# If Caddy is not running this step fails fast and clearly before the
# smoke test issues a misleading "port 443 refused" error.
run: sudo systemctl reload caddy
# The runner executes job steps inside Docker containers (DooD).
# `systemctl` is not present in Ubuntu container images and cannot
# reach the host's systemd directly. We use the Docker socket
# (mounted into every job container via runner-config.yaml) to spin
# up a privileged sibling container in the host PID namespace;
# nsenter then enters the host's namespaces so systemctl talks to
# the real host systemd daemon. No sudoers entry is required — the
# Docker socket already grants root-equivalent host access.
#
# `systemctl reload caddy` sends SIGHUP; Caddy re-reads
# /etc/caddy/Caddyfile (symlinked to infra/caddy/Caddyfile) without
# dropping connections. If Caddy is not running this step fails fast
# before the smoke test issues a misleading "port 443 refused" error.
run: |
docker run --rm --privileged --pid=host \
ubuntu:22.04 \
nsenter -t 1 -m -u -n -p -i -- /bin/systemctl reload caddy
- name: Smoke test deployed environment
# Healthchecks confirm containers are healthy; they do NOT confirm the