fix: add environment variables to deploy script and E2E tests
TaxBaik CI/CD / build-and-deploy (push) Failing after 3m11s

- Add ConnectionStrings__Default env var to deploy_gb.sh for production deployment
- Add DOTNET_PRINT_TELEMETRY_MESSAGE=false to suppress telemetry
- Update E2E tests to support env vars (E2E_BASE_URL, E2E_ADMIN_USERNAME, E2E_ADMIN_PASSWORD)
- Fixes 'Missing connection string' error on new deployments

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 01:54:18 +09:00
parent f519df3e37
commit e202faa431
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -67,6 +67,8 @@ echo "=== Starting New App on Port $TARGET_PORT ==="
cd "$DEPLOY_DIR"
export ASPNETCORE_ENVIRONMENT=Production
export ASPNETCORE_URLS="http://127.0.0.1:$TARGET_PORT"
export ConnectionStrings__Default="Host=localhost;Database=taxbaikdb;Username=taxbaik;Password=taxbaik123"
export DOTNET_PRINT_TELEMETRY_MESSAGE=false
# Run dotnet process
nohup /usr/bin/dotnet TaxBaik.Web.dll > "web_${TARGET_PORT}.log" 2>&1 &
+3 -3
View File
@@ -1,8 +1,8 @@
import { expect, test } from '@playwright/test';
const baseUrl = 'http://localhost:5001/taxbaik';
const username = 'test_admin';
const password = 'TestAdmin@123456';
const baseUrl = process.env.E2E_BASE_URL || 'http://localhost:5001/taxbaik';
const username = process.env.E2E_ADMIN_USERNAME || 'test_admin';
const password = process.env.E2E_ADMIN_PASSWORD || 'TestAdmin@123456';
test.describe('Admin Pages E2E (Manual)', () => {
let token: string;