test: rebuild backend/test runner and wait for mysql

This commit is contained in:
zhi
2026-03-15 15:56:03 +00:00
parent 95a6354fc3
commit 1047110de5
3 changed files with 14 additions and 1 deletions

View File

@@ -63,6 +63,16 @@ echo "🔨 Building frontend..."
docker rmi harborforge-test-frontend:dev 2>/dev/null || true
docker compose -f "$COMPOSE_FILE" build --no-cache --build-arg VITE_API_BASE=http://backend:8000 frontend
# Build backend (force no cache, remove image first)
echo "🔨 Building backend..."
docker rmi harborforge-test-backend:dev 2>/dev/null || true
docker compose -f "$COMPOSE_FILE" build --no-cache backend
# Build test runner (force no cache, remove image first)
echo "🔨 Building test runner..."
docker rmi harborforge-test-runner:dev 2>/dev/null || true
docker compose -f "$COMPOSE_FILE" build --no-cache test
# Start services
echo "📦 Starting services..."
docker compose -f "$COMPOSE_FILE" up -d