fix(ci): e2e-stage defaults to *.stage.calentiq.com when secrets empty.
Empty E2E_STAGE_* overrode :-defaults with blank hosts. Refs EventHub/EventHubBack#73
This commit is contained in:
@@ -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"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user