Commit 9cb5f9be authored by Vũ Hoàng Anh's avatar Vũ Hoàng Anh

ci: fix yaml syntax for shell commands

parent 04e10811
Pipeline #3302 passed with stage
in 2 minutes and 18 seconds
...@@ -3,11 +3,10 @@ stages: ...@@ -3,11 +3,10 @@ stages:
deploy_to_server: deploy_to_server:
stage: deploy stage: deploy
# Không dùng image vì chạy shell trực tiếp trên host # Chế độ shell chạy trực tiếp trên host
script: script:
- echo "🚀 Bắt đầu quá trình Deploy từ Runner Path..." - echo "🚀 Bắt đầu quá trình Deploy từ Runner Path..."
- # Copy file .env từ folder cũ của bro sang (nếu có) để không bị mất config - "if [ -f /home/anhvh/canifa_soure/chatbot-canifa/backend/.env ]; then cp /home/anhvh/canifa_soure/chatbot-canifa/backend/.env backend/.env; fi"
- [ -f /home/anhvh/canifa_soure/chatbot-canifa/backend/.env ] && cp /home/anhvh/canifa_soure/chatbot-canifa/backend/.env backend/.env
- cd backend - cd backend
- docker compose up --build -d - docker compose up --build -d
- echo "✅ Deploy thành công rực rỡ!" - echo "✅ Deploy thành công rực rỡ!"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment