2 Commits

Author SHA1 Message Date
bf37f8a281 feat(自动构建): 自动构建
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing
2021-09-07 11:25:20 +08:00
ce68380357 fix(更新文档): 更新文档 2021-09-07 11:08:40 +08:00
3 changed files with 21 additions and 4 deletions

View File

@ -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/

View File

@ -1,7 +1,7 @@
# gitcz
Golang版本Git Commitizencommit规范工具
# 快速安装
go get -u github.com/xiaoqidun/gitcz
go install github.com/xiaoqidun/gitcz@latest
# 编译安装
```
git clone https://github.com/xiaoqidun/gitcz.git

2
go.mod
View File

@ -1,3 +1,3 @@
module github.com/xiaoqidun/gitcz
go 1.15
go 1.17