🔧 Implement deployment fixes and enhance Gitea workflows
Some checks failed
CI/CD Pipeline (Fast) / production (push) Failing after 6m6s
CI/CD Pipeline (Simple & Reliable) / production (push) Failing after 6m15s
CI/CD Pipeline (Zero Downtime - Fixed) / production (push) Failing after 7m59s

- Created `DEPLOYMENT-FIXES.md` to document issues and solutions for Gitea Actions.
- Fixed Dockerfile path for standalone build.
- Enhanced `gitea-deploy.sh` with improved environment variable handling and extended health check timeouts.
- Introduced `gitea-deploy-simple.sh` for simplified deployments without database dependencies.
- Updated Next.js configuration to resolve build issues.
- Improved health check logic and error handling across all Gitea workflows.

 These changes enhance deployment reliability and provide better debugging information.
This commit is contained in:
2025-09-13 23:48:50 +02:00
parent cc5009a0d6
commit ca2cbc2c92
5 changed files with 394 additions and 9 deletions

View File

@@ -41,3 +41,25 @@
[2025-09-13 23:36:54] 📊 Container name: portfolio-app-simple
[2025-09-13 23:36:54] 📝 Logs: docker logs portfolio-app-simple
Sat Sep 13 23:36:54 CEST 2025: Simplified Gitea deployment successful - Port: 3000 - Image: portfolio-app:20250913-233632
[2025-09-13 23:46:31] 🚀 Starting simplified Gitea deployment for portfolio
[2025-09-13 23:46:31] 🔨 Step 1: Building application...
[2025-09-13 23:46:31] 📦 Building Next.js application...
[SUCCESS] ✅ Application built successfully
[2025-09-13 23:46:54] 🐳 Step 2: Docker operations...
[2025-09-13 23:46:54] 🏗️ Building Docker image...
[SUCCESS] ✅ Docker image built successfully
[2025-09-13 23:48:01] 🚀 Step 3: Deploying application...
[2025-09-13 23:48:01] 🚀 Starting new container on port 3000...
[2025-09-13 23:48:01] ⏳ Waiting for container to be ready...
[2025-09-13 23:48:21] 🏥 Performing health check...
[SUCCESS] ✅ Application is healthy!
[2025-09-13 23:48:21] ✅ Step 4: Verifying deployment...
[SUCCESS] ✅ Main page is accessible
[2025-09-13 23:48:22] 📊 Container status:
[2025-09-13 23:48:22] 📈 Resource usage:
[SUCCESS] 🎉 Simplified Gitea deployment completed successfully!
[2025-09-13 23:48:23] 🌐 Application is available at: http://localhost:3000
[2025-09-13 23:48:23] 🏥 Health check endpoint: http://localhost:3000/api/health
[2025-09-13 23:48:23] 📊 Container name: portfolio-app-simple
[2025-09-13 23:48:23] 📝 Logs: docker logs portfolio-app-simple
Sat Sep 13 23:48:23 CEST 2025: Simplified Gitea deployment successful - Port: 3000 - Image: portfolio-app:20250913-234801