From 501178d0586961e925d34d01f36b0c045c3ffb78 Mon Sep 17 00:00:00 2001 From: denshooter Date: Fri, 16 Oct 2026 00:08:24 +0200 Subject: [PATCH] ci: route staging through traefik at testing.dk0.dev The dev container was never attached to the edge network, so Traefik had no way to reach it and dk0-catchall redirected testing.dk0.dev to dk0.dev. Attach portfolio-app-dev to edge on every deploy; the route itself lives in the homelab repo (apps/doxx/traefik/portfolio-testing.yml). Default the dev base URL to https://testing.dk0.dev (dev.dk0.dev has no DNS record). Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d208a7e..0deb9b0 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -132,7 +132,7 @@ jobs: -p ${HEALTH_PORT}:3000 \ -e NODE_ENV=production \ -e LOG_LEVEL=${LOG_LEVEL:-debug} \ - -e NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL_DEV:-https://dev.dk0.dev} \ + -e NEXT_PUBLIC_BASE_URL=${NEXT_PUBLIC_BASE_URL_DEV:-https://testing.dk0.dev} \ -e DATABASE_URL="${DATABASE_URL}" \ -e REDIS_URL="${REDIS_URL}" \ -e MY_EMAIL="${MY_EMAIL}" \ @@ -150,6 +150,9 @@ jobs: # Connect to proxy network docker network connect proxy $CONTAINER_NAME 2>/dev/null || true + # Traefik erreicht den Container über das Netz edge; die Route testing.dk0.dev + # liegt im homelab-Repo (apps/doxx/traefik/portfolio-testing.yml) + docker network connect edge $CONTAINER_NAME 2>/dev/null || true # Wait for health echo "⏳ Waiting for container to be healthy..." @@ -173,7 +176,7 @@ jobs: echo "✅ Dev deployment completed!" env: LOG_LEVEL: ${{ vars.LOG_LEVEL || 'debug' }} - NEXT_PUBLIC_BASE_URL_DEV: ${{ vars.NEXT_PUBLIC_BASE_URL_DEV || 'https://dev.dk0.dev' }} + NEXT_PUBLIC_BASE_URL_DEV: ${{ vars.NEXT_PUBLIC_BASE_URL_DEV || 'https://testing.dk0.dev' }} DATABASE_URL: postgresql://portfolio_user:portfolio_pass@portfolio-postgres:5432/portfolio_db?schema=public REDIS_URL: redis://portfolio-redis:6379 MY_EMAIL: ${{ vars.MY_EMAIL }}