Browse Source

修改build脚本

dev-restore_mount
chenzhihang 1 year ago
parent
commit
c4b569bb85
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      k8s/build.sh

+ 3
- 1
k8s/build.sh View File

@@ -43,6 +43,7 @@ cd ${baseDir}


# 拉取指定分支的最新代码 # 拉取指定分支的最新代码
echo "Checking out and pulling branch $branch..." echo "Checking out and pulling branch $branch..."

git stash git stash
git checkout $branch git checkout $branch
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@@ -57,7 +58,8 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi


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

# 创建目录 # 创建目录
mkdir -p ${baseDir}/k8s/dockerfiles/jar mkdir -p ${baseDir}/k8s/dockerfiles/jar
mkdir -p ${baseDir}/k8s/dockerfiles/html mkdir -p ${baseDir}/k8s/dockerfiles/html


Loading…
Cancel
Save