ci(chuanqi_server_jenkins): 添加 Docker Compose 重启步骤- 在 Jenkins 部署脚本中添加了 Docker Compose重启命令
- 确保在代码更新后,Docker容器能够正确重启并应用更改
This commit is contained in:
@@ -5,6 +5,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
echo 'Deploying...'
|
echo 'Deploying...'
|
||||||
sh "cd /home/cq/data&&git pull"
|
sh "cd /home/cq/data&&git pull"
|
||||||
|
sh "cd /home/cq/data&&docker compose restart"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user