Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
chatbot canifa
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
chatbot canifa
Commits
f7953c65
Commit
f7953c65
authored
Dec 29, 2025
by
Vũ Hoàng Anh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: remove volumes and force replace container to fix html update
parent
1f56f9ce
Pipeline
#3304
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
.gitlab-ci.yml
.gitlab-ci.yml
+7
-3
docker-compose.yml
backend/docker-compose.yml
+2
-2
No files found.
.gitlab-ci.yml
View file @
f7953c65
...
@@ -5,11 +5,15 @@ deploy_to_server:
...
@@ -5,11 +5,15 @@ deploy_to_server:
stage
:
deploy
stage
:
deploy
# Chế độ shell chạy 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 Pat
h..."
-
echo "🚀 Bắt đầu quá trình Deploy
Sạc
h..."
-
export DOCKER_BUILDKIT=1
-
export DOCKER_BUILDKIT=1
-
"
if
[
-f
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
];
then
cp
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
backend/.env;
fi"
-
"
if
[
-f
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
];
then
cp
/home/anhvh/canifa_soure/chatbot-canifa/backend/.env
backend/.env;
fi"
-
cd backend
-
cd backend
-
docker compose up --build -d
-
# "Giết" sạch tất cả các bản cũ (kể cả bản bro chạy tay hay bản runner cũ)
-
echo "✅ Deploy thành công rực rỡ!"
-
docker stop canifa_backend ||
true
-
docker rm -f canifa_backend ||
true
-
docker compose -p canifa-chatbot down --remove-orphans ||
true
-
docker compose -p canifa-chatbot up --build -d
-
echo "✅ Web ĐÃ CẬP NHẬT THÀNH CÔNG!"
only
:
only
:
-
master
-
master
backend/docker-compose.yml
View file @
f7953c65
...
@@ -6,8 +6,8 @@ services:
...
@@ -6,8 +6,8 @@ services:
env_file
:
.env
env_file
:
.env
ports
:
ports
:
-
"
5000:5000"
-
"
5000:5000"
volumes
:
#
volumes:
-
.:/app
#
- .:/app
environment
:
environment
:
-
PORT=5000
-
PORT=5000
restart
:
unless-stopped
restart
:
unless-stopped
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment