浏览代码

💚: fix docker not stopping containers

master
Adrien 3 年前
父节点
当前提交
70077f1faf
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      .drone.yml

+ 5
- 5
.drone.yml 查看文件

@@ -13,14 +13,14 @@ server:

steps:

- name: Build new image
commands:
- docker build . -f Dockerfile.production --tag="nexus-timers"

- name: Stop and destroy old container
failure: ignore
commands:
- docker ps -a | grep nexus-timers | awk '{system ("docker stop " $1); system ("docker rm " $1)}'
- docker ps -a | grep nexus-timers | awk '{system ("docker stop " $1); system ("docker rm " $1)}'

- name: Build new image
commands:
- docker build . -f Dockerfile.production --tag="nexus-timers"

- name: Launch new container
commands:


正在加载...
取消
保存