Commit 04e10811 authored by Vũ Hoàng Anh's avatar Vũ Hoàng Anh

ci: final fix using runner build path and env copy

parent a5b3fc5d
Pipeline #3301 failed
...@@ -5,11 +5,11 @@ deploy_to_server: ...@@ -5,11 +5,11 @@ deploy_to_server:
stage: deploy stage: deploy
# Không dùng image vì chạy shell trực tiếp trên host # Không dùng image vì chạy shell trực tiếp trên host
script: script:
- echo "🚀 Bắt đầu quá trình Deploy trực tiếp trên Server..." - echo "🚀 Bắt đầu quá trình Deploy từ Runner Path..."
- cd /home/anhvh/canifa_soure - # Copy file .env từ folder cũ của bro sang (nếu có) để không bị mất config
- git pull origin master - [ -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!" - echo "✅ Deploy thành công rực rỡ!"
only: only:
- master - master
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