260216:1532 4rd Deploy (Prepare CI/CD: Revise .gitea/workflow/deploy.yaml #5)
All checks were successful
Build and Deploy / deploy (push) Successful in 47s

This commit is contained in:
admin
2026-02-16 15:32:30 +07:00
parent 27544c994f
commit de92b153c6

View File

@@ -41,10 +41,11 @@ jobs:
--build-arg NEXT_PUBLIC_API_URL=https://backend.np-dms.work/api \
-t lcbp3-frontend:latest .
# 4. Update Containers (stop เก่า แล้ว recreate ใหม่)
# 4. Update Containers
echo "🔄 Updating Containers..."
cd /share/np-dms/app
docker compose -f docker-compose-app.yml down
# ⚠️ ต้อง rm -f เพราะ container เดิมอาจสร้างจาก compose คนละ project
docker rm -f backend frontend 2>/dev/null || true
docker compose -f docker-compose-app.yml up -d
# 5. Cleanup