From 5b97d3f7a139b9bbc5dca52ab82dbcf4132cc62e Mon Sep 17 00:00:00 2001 From: denshooter <44590296+denshooter@users.noreply.github.com> Date: Fri, 16 Oct 2026 00:08:46 +0200 Subject: [PATCH] ci: route staging through traefik at testing.dk0.dev (#79) Attach portfolio-app-dev to the edge network on every deploy and default the dev base URL to https://testing.dk0.dev. Route lives in the homelab repo (apps/doxx/traefik/portfolio-testing.yml). 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 }}