fix(ci): e2e-stage defaults to *.stage.calentiq.com when secrets empty.
CI / test (push) Successful in 7m31s
CI / deploy-ift (push) Successful in 2m35s
CI / e2e-ift (push) Successful in 2m46s
CI / deploy-stage (push) Successful in 2m33s
CI / e2e-stage (push) Successful in 4m22s

Empty E2E_STAGE_* overrode :-defaults with blank hosts. Refs EventHub/EventHubBack#73
This commit is contained in:
2026-08-16 00:25:12 +03:00
parent c1b4897a8b
commit fb927b7f71
+10 -8
View File
@@ -12,17 +12,19 @@ set -euo pipefail
STAND="${1:?stand: ift|stage}" STAND="${1:?stand: ift|stage}"
case "${STAND}" in case "${STAND}" in
ift) ift)
API_HOST="${API_HOST:-https://api.ift.eventhub.local}" [[ -n "${API_HOST:-}" ]] || API_HOST="https://api.ift.eventhub.local"
ADMIN_API_HOST="${ADMIN_API_HOST:-https://admin-api.ift.eventhub.local}" [[ -n "${ADMIN_API_HOST:-}" ]] || ADMIN_API_HOST="https://admin-api.ift.eventhub.local"
WS_HOST="${WS_HOST:-wss://ws.ift.eventhub.local}" [[ -n "${WS_HOST:-}" ]] || WS_HOST="wss://ws.ift.eventhub.local"
ADMIN_WS_HOST="${ADMIN_WS_HOST:-wss://admin-ws.ift.eventhub.local}" [[ -n "${ADMIN_WS_HOST:-}" ]] || ADMIN_WS_HOST="wss://admin-ws.ift.eventhub.local"
DEVOPS_SMOKE="/opt/eventhub-ift/devops/scripts/smoke-core.sh" DEVOPS_SMOKE="/opt/eventhub-ift/devops/scripts/smoke-core.sh"
;; ;;
stage) stage)
API_HOST="${API_HOST:-https://api.stage.eventhub.local}" # Публичный stage (канон STAGE-BROWSER.md). Пустые E2E_STAGE_* из CI
ADMIN_API_HOST="${ADMIN_API_HOST:-https://admin-api.stage.eventhub.local}" # не должны оставлять API_HOST="" (иначе CT бьёт в *.eventhub.local).
WS_HOST="${WS_HOST:-wss://ws.stage.eventhub.local}" [[ -n "${API_HOST:-}" ]] || API_HOST="https://api.stage.calentiq.com"
ADMIN_WS_HOST="${ADMIN_WS_HOST:-wss://admin-ws.stage.eventhub.local}" [[ -n "${ADMIN_API_HOST:-}" ]] || ADMIN_API_HOST="https://admin-api.stage.calentiq.com"
[[ -n "${WS_HOST:-}" ]] || WS_HOST="wss://ws.stage.calentiq.com"
[[ -n "${ADMIN_WS_HOST:-}" ]] || ADMIN_WS_HOST="wss://admin-ws.stage.calentiq.com"
DEVOPS_SMOKE="/opt/eventhub-stage/devops/scripts/smoke-core.sh" DEVOPS_SMOKE="/opt/eventhub-stage/devops/scripts/smoke-core.sh"
;; ;;
*) *)