mirror of
https://github.com/xiaoqidun/gitcz.git
synced 2025-03-15 00:14:38 +08:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
d4c9df855d | |||
10bffed6e5 | |||
23618d81ad | |||
bf37f8a281 | |||
ce68380357 |
21
.drone.yml
21
.drone.yml
@ -3,8 +3,25 @@ type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: generate
|
||||
pull: if-not-exists
|
||||
image: hkccr.ccs.tencentyun.com/xiaoqidun/build
|
||||
commands:
|
||||
- build -f build.sh -i gitcz.go -o release/gitcz
|
||||
- name: build
|
||||
pull: if-not-exists
|
||||
image: golang:alpine
|
||||
image: xiaoqidun/goenv
|
||||
commands:
|
||||
- go build gitcz.go
|
||||
- ./build.sh
|
||||
- name: upload
|
||||
image: xiaoqidun/gocos
|
||||
settings:
|
||||
secret_id:
|
||||
from_secret: cos_secret_id
|
||||
secret_key:
|
||||
from_secret: cos_secret_key
|
||||
bucket_url:
|
||||
from_secret: cos_bucket_url
|
||||
source: release/
|
||||
target: product/gitcz
|
||||
strip_prefix: release/
|
@ -1,7 +1,7 @@
|
||||
# gitcz
|
||||
Golang版本Git Commitizen,commit规范工具
|
||||
# 快速安装
|
||||
go get -u github.com/xiaoqidun/gitcz
|
||||
go install github.com/xiaoqidun/gitcz@latest
|
||||
# 编译安装
|
||||
```
|
||||
git clone https://github.com/xiaoqidun/gitcz.git
|
||||
@ -9,7 +9,7 @@ cd gitcz
|
||||
go build gitcz.go
|
||||
```
|
||||
# 手动安装
|
||||
1. 根据系统架构下载为你编译好的[二进制文件](https://github.com/xiaoqidun/gitcz/releases)
|
||||
1. 根据系统架构下载为你编译好的[二进制文件](https://aite.xyz/product/gitcz/)
|
||||
2. 将下载好的二进制文件重命名为gitcz并保留后缀
|
||||
3. 把gitcz文件移动到系统PATH环境变量中的目录下
|
||||
4. windows外的系统需使用chmod命令赋予可执行权限
|
||||
|
Reference in New Issue
Block a user