1 Star 0 Fork 104

开源代码备份 / Tars

forked from TarsCloud / Tars 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tars-deploy-framework.sh 867 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
if (( $# < 2 ))
then
echo $#
echo "$0 tag push(false/true)"
exit 1
fi
tag=$1
push=$2
if [ "$push" == "true" ]; then
push="true"
else
push="false"
fi
# tarsTag=$(git describe --tags $(git rev-list --tags --max-count=1) --abbrev=0 --always)
# cd framework && frameworkTag=$(git describe --tags $(git rev-list --tags --max-count=1) --abbrev=0 --always) && cd ..
# cd web && webTag=$(git describe --tags $(git rev-list --tags --max-count=1) --abbrev=0 --always) && cd ..
tarsTag=$tag
cd framework && frameworkTag=$(git reflog HEAD | grep 'checkout:' | head -1 | awk '{print $NF}') && cd ..
cd web && webTag=$(git reflog HEAD | grep 'checkout:' | head -1 | awk '{print $NF}') && cd ..
echo "starting tars:${tarsTag} framework:$frameworkTag web:$webTag deploy"
cd docker/framework
./build-docker.sh $frameworkTag $webTag ${tarsTag} ${push}
C/C++
1
https://gitee.com/kgduyjj_mirrors/Tars.git
git@gitee.com:kgduyjj_mirrors/Tars.git
kgduyjj_mirrors
Tars
Tars
master

搜索帮助