fix: 打包前还原变更
This commit is contained in:
@@ -37,6 +37,14 @@ done
|
||||
# clear tmp dir
|
||||
rm -rf ${BuildTmpDir} && mkdir -p ${BuildTmpDir}
|
||||
|
||||
# =================== build branch
|
||||
echo
|
||||
cd $BuildDir
|
||||
git checkout .
|
||||
git pull
|
||||
git checkout $BuildBranch
|
||||
git pull
|
||||
|
||||
# =================== Web
|
||||
echo
|
||||
cd $WebDir
|
||||
@@ -91,11 +99,6 @@ echo "===> vendor data copy to $output"
|
||||
|
||||
# =================== build docker image
|
||||
echo
|
||||
cd $BuildDir
|
||||
git checkout .
|
||||
git pull
|
||||
git checkout $BuildBranch
|
||||
git pull
|
||||
bash $BuildDir/build-docker.sh --version $VERSION --platform linux/amd64 --system ubuntu22.04
|
||||
|
||||
# Compile the front-end and back-end and then package the version
|
||||
|
||||
Reference in New Issue
Block a user