From 551bf8d80f327dc68d2a3f9e655c0d05acd7b4ac Mon Sep 17 00:00:00 2001 From: niushuai233 Date: Mon, 19 Dec 2022 17:57:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=9D=E8=AF=95=E4=BD=BF=E7=94=A8she?= =?UTF-8?q?ll=E5=90=AF=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 +++- start.sh | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 start.sh diff --git a/.drone.yml b/.drone.yml index baf6698..bea65ab 100644 --- a/.drone.yml +++ b/.drone.yml @@ -55,4 +55,6 @@ steps: - name: docker-compose path: /usr/local/bin/docker-compose commands: - - docker-compose up -d + - pwd + - ls -alh + - sh start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..247c628 --- /dev/null +++ b/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash +if [[ -n $(docker ps -q -f "name=^aspect-lock$") ]];then + echo "has start aspect-lock" + docker rm aspect-lock +else + echo "not start aspect-lock" +fi \ No newline at end of file