feat(ci): smoke test production deploy after up --wait
Mirrors the nightly.yml smoke step against archiv.raddatz.cloud. Catches the same three failure modes (Caddy not reloaded, DNS missing, HSTS dropped, /actuator block bypassed) on the prod path. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -74,6 +74,18 @@ jobs:
|
|||||||
--env-file .env.production \
|
--env-file .env.production \
|
||||||
up -d --wait --remove-orphans
|
up -d --wait --remove-orphans
|
||||||
|
|
||||||
|
- name: Smoke test deployed environment
|
||||||
|
# See nightly.yml — same three checks, against the prod vhost.
|
||||||
|
run: |
|
||||||
|
set -e
|
||||||
|
URL="https://archiv.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
|
- name: Cleanup env file
|
||||||
if: always()
|
if: always()
|
||||||
run: rm -f .env.production
|
run: rm -f .env.production
|
||||||
|
|||||||
Reference in New Issue
Block a user