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: |
|
run: |
|
||||||
sleep 3
|
sleep 3
|
||||||
STATUS=$(curl -sI https://slimcore.io/ | awk '/HTTP\//{print $2; exit}')
|
STATUS=$(curl -sI https://slimcore.io/ | awk '/HTTP\//{print $2; exit}')
|
||||||
if [ "$STATUS" != "200" ]; then
|
# 200 = oeffentlich; 401 = Pre-Launch mit Basic-Auth (siehe Caddyfile).
|
||||||
echo "slimcore.io liefert HTTP $STATUS, erwartet 200"
|
# Beide bestaetigen, dass Caddy den frischen Build serviert.
|
||||||
exit 1
|
case "$STATUS" in
|
||||||
fi
|
200|401) echo "✓ slimcore.io antwortet mit $STATUS" ;;
|
||||||
echo "✓ slimcore.io antwortet mit 200"
|
*) echo "slimcore.io liefert HTTP $STATUS, erwartet 200 oder 401"; exit 1 ;;
|
||||||
|
esac
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue