Преглед на файлове

💚: 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:


Зареждане…
Отказ
Запис