From fab5677b8fbbeb6cb3b327fd2d54babf2e29aeb9 Mon Sep 17 00:00:00 2001 From: Gaze Date: Fri, 4 Aug 2023 19:50:29 +0800 Subject: [PATCH] fix: deploy when container is not running --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 3f448b9..fe5b6f9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ steps: command_timeout: 2m script: - | - if docker ps -f name=thief_music | grep -q thief_music; then + if docker container ls -a -f name=thief_music | grep -q thief_music; then docker stop thief_music docker rm thief_music else