fix: webapp-entrypoint.sh CI path bypasses contracts.env sourcing without documentation (#422)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-03-06 07:01:07 +00:00
parent 8c893d68e1
commit d301f75523

View file

@ -3,12 +3,17 @@ set -euo pipefail
if [[ "${CI:-}" == "true" ]]; then
# ── CI path ────────────────────────────────────────────────────────
# In CI, contracts.env is NOT sourced here. Instead, the calling CI step
# (.woodpecker/e2e.yml) sources contracts.env itself and exports
# VITE_KRAIKEN_ADDRESS and VITE_STAKE_ADDRESS directly into the environment
# before this entrypoint runs. The :? guards below enforce that those
# variables have been provided.
cd /app/web-app
echo "[webapp-ci] Starting Web App..."
: "${VITE_KRAIKEN_ADDRESS:?VITE_KRAIKEN_ADDRESS is required}"
: "${VITE_STAKE_ADDRESS:?VITE_STAKE_ADDRESS is required}"
: "${VITE_KRAIKEN_ADDRESS:?VITE_KRAIKEN_ADDRESS is required — set by .woodpecker/e2e.yml from contracts.env}"
: "${VITE_STAKE_ADDRESS:?VITE_STAKE_ADDRESS is required — set by .woodpecker/e2e.yml from contracts.env}"
# Disable Vue DevTools in CI to avoid path resolution issues
export CI=true