forked from Gitlink/microservices
redeploy更新
This commit is contained in:
parent
09e2dd15a7
commit
2cbdf951f6
|
|
@ -14,6 +14,14 @@ usage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
modules(){
|
modules(){
|
||||||
|
if [ "$env" = 'test' ]; then
|
||||||
|
echo "切换到develop分支"
|
||||||
|
git checkout dev
|
||||||
|
git branch --set-upstream-to=origin/dev dev
|
||||||
|
else
|
||||||
|
echo "切换到master分支"
|
||||||
|
git checkout master
|
||||||
|
fi
|
||||||
echo "拉取最新代码"
|
echo "拉取最新代码"
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue