构建修改
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
XinWei 2024-09-20 10:58:43 +08:00
parent 4b0995a009
commit d42e981c2f

View File

@ -89,7 +89,10 @@ steps: # 定义流水线执行步骤,这些步骤将顺序执行
deploy_service() { deploy_service() {
local image_name=$1 local image_name=$1
local container_name=$2 local container_name=$2
if [[ -z "${image_name}" || -z "${container_name}" ]]; then
echo "Error: image_name or container_name is empty."
exit 1
fi
cd /ludu/build/${image_name} cd /ludu/build/${image_name}
docker stop ${container_name} docker stop ${container_name}
docker rm ${container_name} docker rm ${container_name}