From af0a78df38a0e627df78567bf4409fc3202410ee Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 6 Mar 2026 10:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/deploy.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/deploy.sh b/k8s/deploy.sh index 9a299e63..d16387fd 100755 --- a/k8s/deploy.sh +++ b/k8s/deploy.sh @@ -72,6 +72,10 @@ build_image() { fi echo "Build ${image} image succeed" docker push ${image} + if [ $? -ne 0 ]; then + echo "push ${image} image fail" + exit 1 + fi } # 复制和替换 YAML 文件函数