Browse Source

修改部署文件部署华为云

pull/142/head
chenzhihang 1 year ago
parent
commit
8f2add0820
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      k8s/build_and_deploy.sh

+ 7
- 4
k8s/build_and_deploy.sh View File

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

# 登录到目标环境
baseDir="/data/code/manage-platform"
cd ${baseDir}


#build
# 默认参数
@@ -50,6 +46,13 @@ if [[ ! " ${valid_envs[@]} " =~ " $env " ]]; then
exit 1
fi

git stash
git checkout $branch

# 登录到目标环境
baseDir="/data/code/manage-platform"
cd ${baseDir}

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


Loading…
Cancel
Save