diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a262d3e..d85a4597 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -219,7 +219,12 @@ jobs: vendor/bin/pest tests/Integration/EdgeGateway --colors=always" - name: Run edge gateway E2E smoke - run: node scripts/edge-gateway-e2e.mjs + run: | + docker_host="$(ip route show default 2>/dev/null | awk '/default/ { print $3; exit }')" + if [ -z "${docker_host}" ]; then + docker_host="localhost" + fi + EDGE_GATEWAY_E2E_BASE_URL="http://${docker_host}:18080/api" node scripts/edge-gateway-e2e.mjs - name: Tear down local stack if: always() diff --git a/scripts/edge-gateway-e2e.mjs b/scripts/edge-gateway-e2e.mjs index 39f0c1d3..1cadd071 100644 --- a/scripts/edge-gateway-e2e.mjs +++ b/scripts/edge-gateway-e2e.mjs @@ -381,6 +381,8 @@ async function main() { "start", "--install-token", installToken, + "--host-api-url", + baseUrl, "--container-name", containerName, "--config-dir",