From b2bdb78baaa14f503c70d6071581a3f734a954e7 Mon Sep 17 00:00:00 2001 From: NuklearRabbit <145918611+NuklearRabbit@users.noreply.github.com> Date: Sat, 29 Aug 2026 08:36:14 +0200 Subject: [PATCH] fix(ci): reach DIND services over the compose network --- .gitea/workflows/ci.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cbc8f5f..d9f4876 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -53,24 +53,25 @@ jobs: run: | cp .env.example .env docker compose -p mobilityops-e2e up --build -d db api web + docker network connect mobilityops-e2e_mobilityops "$HOSTNAME" for _attempt in $(seq 1 60); do - if curl -fsS http://localhost:1228/health/ready >/dev/null 2>&1; then break; fi + if curl -fsS http://web/health/ready >/dev/null 2>&1; then break; fi sleep 2 done - curl -fsS http://localhost:1228/health/ready + curl -fsS http://web/health/ready docker compose -p mobilityops-e2e exec -T api python -m app.cli seed --reset - name: Install acceptance browsers working-directory: frontend - run: npx playwright install --with-deps chromium firefox + run: npx playwright install --with-deps chromium - name: Run browser acceptance and live smoke suites working-directory: frontend env: - MOBILITYOPS_PUBLIC_URL: http://localhost:1228 + MOBILITYOPS_PUBLIC_URL: http://web run: | npx playwright test - npx playwright test --config=playwright.live.config.ts + npx playwright test --config=playwright.live.config.ts --project=chromium - name: Run concurrent persisted-read smoke - run: python scripts/run-readonly-load-smoke.py --base-url http://localhost:1228 + run: python scripts/run-readonly-load-smoke.py --base-url http://web - name: Upload Playwright report if: failure() uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3; Gitea-compatible artifact protocol @@ -86,5 +87,6 @@ jobs: - name: Remove CI stacks if: always() run: | + docker network disconnect mobilityops-e2e_mobilityops "$HOSTNAME" 2>/dev/null || true docker compose -p mobilityops-e2e down -v --remove-orphans docker compose -p mobilityops-ci -f compose.yaml -f compose.test.yaml down -v --remove-orphans