fix(ci): verify via public HTTPS (follow 301); add build marker for round-trip test
Deploy to plate-software.de / deploy (push) Successful in 22s

This commit is contained in:
2026-06-22 12:35:03 +02:00
parent 5f3a1f9128
commit e87cade037
2 changed files with 9 additions and 4 deletions
+8 -4
View File
@@ -62,12 +62,16 @@ jobs:
- name: Verify live
run: |
set -euo pipefail
# Hit the public HTTPS endpoint and follow the :80 -> :443 redirect.
# -L follows redirects; we assert the FINAL status is 200.
code=$(ssh -i ~/.ssh/id_deploy -o IdentitiesOnly=yes \
"${DEPLOY_USER}@${DEPLOY_HOST}" \
"curl -s -o /dev/null -w '%{http_code}' http://localhost/ -H 'Host: plate-software.de'")
echo "Local origin HTTP $code"
[ "$code" = "200" ] || { echo "❌ unexpected status"; exit 1; }
echo "✅ plate-software.de serving HTTP 200"
"curl -sL -o /dev/null -w '%{http_code}' https://plate-software.de/")
echo "plate-software.de final HTTP $code"
case "$code" in
200) echo "✅ plate-software.de serving HTTP 200" ;;
*) echo "❌ unexpected status $code"; exit 1 ;;
esac
- name: Summary
run: |
+1
View File
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="de">
<head>
<!-- build:ci-deploy-1782124503 -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>plate-software.de — Software aus dem Homelab</title>