tag.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/bash
  2. echo "[TAG] ------------------------------------------------------"
  3. # shellcheck disable=SC2162
  4. read -p "[TAG] enter new tag(eg. 1.3.12):" number
  5. echo ""
  6. echo "[TAG ${number}] mhaya"
  7. git tag -a "v${number}" -m "auto tag"
  8. echo "[TAG ${number}] components/cron"
  9. git tag -a "components/cron/v${number}" -m "auto tag"
  10. echo "[TAG ${number}] components/data-config"
  11. git tag -a "components/data-config/v${number}" -m "auto tag"
  12. echo "[TAG ${number}] components/etcd"
  13. git tag -a "components/etcd/v${number}" -m "auto tag"
  14. echo "[TAG ${number}] components/gin"
  15. git tag -a "components/gin/v${number}" -m "auto tag"
  16. echo "[TAG ${number}] components/gops"
  17. git tag -a "components/gops/v${number}" -m "auto tag"
  18. echo "[TAG ${number}] components/gorm"
  19. git tag -a "components/gorm/v${number}" -m "auto tag"
  20. echo "[TAG ${number}] components/mongo"
  21. git tag -a "components/mongo/v${number}" -m "auto tag"
  22. echo "[TAG ${number}] examples"
  23. git tag -a "examples/v${number}" -m "auto tag"
  24. echo "[TAG] ------------------------------------------------------"