Showing
1 changed file
with
42 additions
and
0 deletions
publish_prod_short.sh
0 → 100644
| 1 | +#!/usr/bin/env sh | ||
| 2 | +# ----------------------------------------------- | ||
| 3 | +# Filename: publish.sh | ||
| 4 | +# Revision: 1.0 | ||
| 5 | +# Date: 2022年5月20日 | ||
| 6 | +# Author: Hooke | ||
| 7 | +# Description: DEV环境已经打包推送后,编译产物存在。 | ||
| 8 | +# ----------------------------------------------- | ||
| 9 | + | ||
| 10 | +# 当发生错误时中止脚本 | ||
| 11 | +set -e | ||
| 12 | + | ||
| 13 | +# 本地Git服务器目录路径 | ||
| 14 | +PHP_PATH=/Users/huyirui/program/itomix/git/isp/f/custom_form | ||
| 15 | + | ||
| 16 | +# 更新其他分支数据 | ||
| 17 | +cd $PHP_PATH | ||
| 18 | +git checkout master | ||
| 19 | +git pull origin master | ||
| 20 | +git merge --no-edit custom_form | ||
| 21 | +git push origin master | ||
| 22 | + | ||
| 23 | +git checkout guanzong | ||
| 24 | +git pull origin guanzong | ||
| 25 | +git merge --no-edit custom_form | ||
| 26 | +git push origin guanzong | ||
| 27 | + | ||
| 28 | +git checkout mituo | ||
| 29 | +git pull origin mituo | ||
| 30 | +git merge --no-edit custom_form | ||
| 31 | +git push origin mituo | ||
| 32 | + | ||
| 33 | +ssh -p 22 itomix@ipadbiz.cn ' | ||
| 34 | + cd /opt/oa; | ||
| 35 | + git pull origin master; | ||
| 36 | + cd /opt/guanzong; | ||
| 37 | + git pull origin guanzong; | ||
| 38 | + cd /opt/mituo; | ||
| 39 | + git pull origin mituo; | ||
| 40 | +' | ||
| 41 | + | ||
| 42 | +git checkout custom_form; |
-
Please register or login to post a comment