fix(CI): 完善更换容器命令
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
633c1ae5a8
commit
9531e71dfb
|
|
@ -45,12 +45,15 @@ steps:
|
|||
script:
|
||||
- echo $NEXUS_PASSWORD | docker login -u $NEXUS_USER --password-stdin 192.168.31.104:8082
|
||||
- docker pull 192.168.31.104:8082/tiamo/user-point-management
|
||||
- docker image prune -f
|
||||
- echo 开始停止容器
|
||||
- docker stop user-point-management
|
||||
- echo 开始强制清除停止容器
|
||||
- docker container prune -f
|
||||
- echo 清除完成
|
||||
- echo 开始清除未使用镜像
|
||||
- docker image prune -f
|
||||
- echo 开始标签镜像
|
||||
- docker tag 192.168.31.104:8082/tiamo/user-point-management tiamo/user-point-management:latest
|
||||
- echo 标记完成
|
||||
- echo 开始运行容器
|
||||
- docker run --name user-point-management -d -p 29029:5000
|
||||
-e Connection__UserPointManagement="Server=67.230.184.225;Port=58007;UserId=postgres;Password=postgres;Database=tiamo;"
|
||||
tiamo/user-point-management
|
||||
|
|
|
|||
Loading…
Reference in New Issue