feat(infra): production deployment pipeline — Caddy, staging, Gitea Actions (#497) #499
@@ -75,6 +75,20 @@ jobs:
|
||||
--profile staging \
|
||||
up -d --wait --remove-orphans
|
||||
|
||||
- name: Smoke test deployed environment
|
||||
# Healthchecks confirm containers are healthy; they do NOT confirm the
|
||||
# public surface works. This step catches: Caddy not reloaded, DNS
|
||||
# missing, HSTS header dropped, /actuator block bypassed.
|
||||
run: |
|
||||
set -e
|
||||
URL="https://staging.raddatz.cloud"
|
||||
echo "Smoke test: $URL"
|
||||
curl -fsS --max-time 10 "$URL/login" -o /dev/null
|
||||
curl -fsS --max-time 10 -I "$URL/" | grep -qi 'strict-transport-security'
|
||||
status=$(curl -s -o /dev/null -w "%{http_code}" --max-time 10 "$URL/actuator/health")
|
||||
[ "$status" = "404" ] || { echo "expected 404 from /actuator/health, got $status"; exit 1; }
|
||||
echo "All smoke checks passed"
|
||||
|
||||
- name: Cleanup env file
|
||||
if: always()
|
||||
run: rm -f .env.staging
|
||||
|
||||
Reference in New Issue
Block a user