ci: route staging through traefik at testing.dk0.dev (#79)
CI / CD / test-build (push) Successful in 10m14s
CI / CD / deploy-dev (push) Successful in 1m11s
CI / CD / deploy-production (push) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
denshooter
2026-10-16 00:08:46 +02:00
committed by GitHub
parent 9e6ae866d0
commit 5b97d3f7a1
+5 -2
View File
@@ -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 }}