Resolve edge E2E host routing in CI

This commit is contained in:
Jeppe Bundgaard
2026-04-24 20:27:44 +02:00
parent ebe1299089
commit 288627243b
3 changed files with 88 additions and 18 deletions
+14
View File
@@ -1,5 +1,19 @@
services:
edge-broker:
labels:
- "traefik.http.routers.edge-broker-local-ci.rule=PathPrefix(`/api/edge-broker`)"
- "traefik.http.routers.edge-broker-local-ci.entrypoints=web"
- "traefik.http.routers.edge-broker-local-ci.middlewares=secure-headers@file,edge-broker-strip-local"
- "traefik.http.routers.edge-broker-local-ci.priority=190"
- "traefik.http.routers.edge-broker-local-ci.service=edge-broker"
caddy:
labels:
- "traefik.http.routers.local-api-ci.rule=PathPrefix(`/api`)"
- "traefik.http.routers.local-api-ci.entrypoints=web"
- "traefik.http.routers.local-api-ci.middlewares=strip-api-prefix@file,secure-headers@file"
- "traefik.http.routers.local-api-ci.priority=90"
- "traefik.http.routers.local-api-ci.service=caddy"
volumes:
- ci_php_app:/var/www/html
+1 -6
View File
@@ -219,12 +219,7 @@ jobs:
vendor/bin/pest tests/Integration/EdgeGateway --colors=always"
- name: Run edge gateway E2E smoke
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
run: node scripts/edge-gateway-e2e.mjs
- name: Tear down local stack
if: always()