SIGN IN SIGN UP
TarsCloud / Tars UNCLAIMED

Tars is a high-performance RPC framework based on name service and Tars protocol, also integrated administration platform, and implemented hosting-service via flexible schedule.

2021-04-02 11:13:37 +08:00
#!/bin/bash
2021-10-08 10:41:49 +08:00
if (( $# < 2 ))
2021-04-02 11:13:37 +08:00
then
echo $#
2021-10-08 10:41:49 +08:00
echo "$0 tag push(false/true)"
2021-04-02 11:13:37 +08:00
exit 1
fi
2021-10-08 10:41:49 +08:00
tag=$1
push=$2
2021-04-02 11:13:37 +08:00
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 ..
2021-10-08 10:41:49 +08:00
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 ..
2021-04-02 11:13:37 +08:00
echo "starting tars:${tarsTag} framework:$frameworkTag web:$webTag deploy"
cd docker/framework
./build-docker.sh $frameworkTag $webTag ${tarsTag} ${push}