| @@ -2,14 +2,13 @@ | |||||
| baseDir="/home/somuns/ci4s" | baseDir="/home/somuns/ci4s" | ||||
| buildDir=$baseDir | |||||
| #判断$1是否为all,如果是,则编译所有模块,否则只编译management-platform模块 | #判断$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" | echo "Building $buildDir" | ||||
| cd $buildDir && mvn clean install | cd $buildDir && mvn clean install | ||||
| @@ -139,7 +139,7 @@ fi | |||||
| if [ "$service" == "all" ]; then | if [ "$service" == "all" ]; then | ||||
| # 编译前端 | # 编译前端 | ||||
| compile_front | |||||
| # compile_front | |||||
| # 编译java | # 编译java | ||||
| compile_java "all" | compile_java "all" | ||||
| @@ -143,7 +143,7 @@ fi | |||||
| if [ "$service" == "all" ]; then | 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" | build_and_deploy "managent-dockerfile" "172.20.32.187/ci4s/ci4s-managent:${tag}" "k8s-7management.yaml" | ||||
| #部署认证中心 | #部署认证中心 | ||||