-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtag.sh
More file actions
38 lines (20 loc) · 876 Bytes
/
Copy pathtag.sh
File metadata and controls
38 lines (20 loc) · 876 Bytes
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
#!/bin/bash
echo "[TAG] ------------------------------------------------------"
# shellcheck disable=SC2162
read -p "[TAG] enter new tag(eg. 1.3.14):" number
echo ""
echo "[TAG ${number}] components/cron"
git tag -a "cron/v${number}" -m "auto tag"
echo "[TAG ${number}] components/data-config"
git tag -a "data-config/v${number}" -m "auto tag"
echo "[TAG ${number}] components/etcd"
git tag -a "etcd/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gin"
git tag -a "gin/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gops"
git tag -a "gops/v${number}" -m "auto tag"
echo "[TAG ${number}] components/gorm"
git tag -a "gorm/v${number}" -m "auto tag"
echo "[TAG ${number}] components/mongo"
git tag -a "mongo/v${number}" -m "auto tag"
echo "[TAG] ------------------------------------------------------"