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
All checks were successful
Build and Deploy / deploy (push) Successful in 47s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user