diff --git a/k8s/build-java.sh b/k8s/build-java.sh index c917e15b..7bb2180b 100644 --- a/k8s/build-java.sh +++ b/k8s/build-java.sh @@ -2,14 +2,13 @@ baseDir="/home/somuns/ci4s" -buildDir=$baseDir #判断$1是否为all,如果是,则编译所有模块,否则只编译management-platform模块 -#if [ "$1" == "all" ]; then -# buildDir=$baseDir -#else -# buildDir="$baseDir/ruoyi-modules/management-platform" -#fi +if [ "$1" == "all" ]; then + buildDir=$baseDir +else + buildDir="$baseDir/ruoyi-modules/management-platform" +fi echo "Building $buildDir" cd $buildDir && mvn clean install diff --git a/k8s/build.sh b/k8s/build.sh index ed30e9f1..a0a3adee 100644 --- a/k8s/build.sh +++ b/k8s/build.sh @@ -139,7 +139,7 @@ fi if [ "$service" == "all" ]; then # 编译前端 - compile_front +# compile_front # 编译java compile_java "all" diff --git a/k8s/deploy.sh b/k8s/deploy.sh index a9fe57f8..06d4b5bd 100644 --- a/k8s/deploy.sh +++ b/k8s/deploy.sh @@ -143,7 +143,7 @@ fi if [ "$service" == "all" ]; then #部署前端 - build_and_deploy "nginx-dockerfile" "172.20.32.187/ci4s/ci4s-front:${tag}" "k8s-12front.yaml" +# build_and_deploy "nginx-dockerfile" "172.20.32.187/ci4s/ci4s-front:${tag}" "k8s-12front.yaml" #部署管理平台 build_and_deploy "managent-dockerfile" "172.20.32.187/ci4s/ci4s-managent:${tag}" "k8s-7management.yaml" #部署认证中心