Browse Source

修改build脚本

dev-restore_mount
chenzhihang 1 year ago
parent
commit
31455d0420
3 changed files with 7 additions and 8 deletions
  1. +5
    -6
      k8s/build-java.sh
  2. +1
    -1
      k8s/build.sh
  3. +1
    -1
      k8s/deploy.sh

+ 5
- 6
k8s/build-java.sh View File

@@ -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


+ 1
- 1
k8s/build.sh View File

@@ -139,7 +139,7 @@ fi

if [ "$service" == "all" ]; then
# 编译前端
compile_front
# compile_front

# 编译java
compile_java "all"


+ 1
- 1
k8s/deploy.sh View File

@@ -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"
#部署认证中心


Loading…
Cancel
Save