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 文件函数