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 <noreply@anthropic.com>
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user