-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathtag.sh
executable file
·42 lines (22 loc) · 986 Bytes
/
tag.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
echo "[TAG] ------------------------------------------------------"
# shellcheck disable=SC2162
read -p "[TAG] enter new tag(eg. 1.3.14):" number
echo ""
echo "[TAG ${number}] cherry"
git tag -a "v${number}" -m "auto tag"
echo "[TAG ${number}] components/cron"
git tag -a "components/cron/v${number}" -m "auto tag"
echo "[TAG ${number}] components/data-config"
git tag -a "components/data-config/v${number}" -m "auto tag"
echo "[TAG ${number}] components/etcd"
git tag -a "components/etcd/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gin"
git tag -a "components/gin/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gops"
git tag -a "components/gops/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gorm"
git tag -a "components/gorm/v${number}" -m "auto tag"
echo "[TAG ${number}] components/mongo"
git tag -a "components/mongo/v${number}" -m "auto tag"
echo "[TAG] ------------------------------------------------------"