publish_prod.sh 846 Bytes
#!/usr/bin/env sh
# -----------------------------------------------
# Filename:    publish.sh
# Revision:    1.0
# Date:        2022年5月20日
# Author:      Hooke
# Description: **** 根据php项目相应特征书写项目发布流程
# -----------------------------------------------

# 当发生错误时中止脚本
set -e

# 更新其他分支数据
git checkout master
git pull origin master
git merge --no-edit custom_form
git push origin master

git checkout guanzong
git pull origin guanzong
git merge --no-edit custom_form
git push origin guanzong

git checkout mituo
git pull origin mituo
git merge --no-edit custom_form
git push origin mituo

ssh -p 22 itomix@ipadbiz.cn '
  cd /opt/oa;
  git pull origin master;
  cd /opt/guanzong;
  git pull origin guanzong;
  cd /opt/mituo;
  git pull origin mituo;
'

git checkout custom_form;