Workflow-Verifikation: 401 als OK akzeptieren (Pre-Launch Basic-Auth)
All checks were successful
Deploy Marketing-Site / Build, Test und Deploy (push) Successful in 1m8s
All checks were successful
Deploy Marketing-Site / Build, Test und Deploy (push) Successful in 1m8s
This commit is contained in:
parent
d14f828aa5
commit
002e7acb48
1 changed files with 6 additions and 5 deletions
|
|
@ -67,8 +67,9 @@ jobs:
|
|||
run: |
|
||||
sleep 3
|
||||
STATUS=$(curl -sI https://slimcore.io/ | awk '/HTTP\//{print $2; exit}')
|
||||
if [ "$STATUS" != "200" ]; then
|
||||
echo "slimcore.io liefert HTTP $STATUS, erwartet 200"
|
||||
exit 1
|
||||
fi
|
||||
echo "✓ slimcore.io antwortet mit 200"
|
||||
# 200 = oeffentlich; 401 = Pre-Launch mit Basic-Auth (siehe Caddyfile).
|
||||
# Beide bestaetigen, dass Caddy den frischen Build serviert.
|
||||
case "$STATUS" in
|
||||
200|401) echo "✓ slimcore.io antwortet mit $STATUS" ;;
|
||||
*) echo "slimcore.io liefert HTTP $STATUS, erwartet 200 oder 401"; exit 1 ;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in a new issue