Browse Source

优化部署文件

dev-lc
chenzhihang 1 year ago
parent
commit
e355ae69df
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      k8s/build_and_deploy.sh

+ 4
- 4
k8s/build_and_deploy.sh View File

@@ -3,6 +3,10 @@
#记录开始时间 #记录开始时间
startTime=$(date +%s) startTime=$(date +%s)


# 登录到目标环境
baseDir="/home/somuns/ci4s"
cd ${baseDir}

#build #build
# 默认参数 # 默认参数
branch="master" branch="master"
@@ -64,10 +68,6 @@ fi


chmod +777 ${baseDir}/k8s/*.sh chmod +777 ${baseDir}/k8s/*.sh


# 登录到目标环境
baseDir="/home/somuns/ci4s"
cd ${baseDir}

echo "start build" echo "start build"
sh ${baseDir}/k8s/build.sh -b ${branch} -s ${service} sh ${baseDir}/k8s/build.sh -b ${branch} -s ${service}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then


Loading…
Cancel
Save