fix: deploy when container is not running
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Gaze 2023-08-04 19:50:29 +08:00
parent d1487ffb1e
commit fab5677b8f

View File

@ -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