feat(自动构建): 自动构建
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing

This commit is contained in:
xiaoqidun 2021-09-07 11:25:20 +08:00
parent ce68380357
commit bf37f8a281

@ -3,8 +3,25 @@ type: docker
name: default name: default
steps: 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 - name: build
pull: if-not-exists pull: if-not-exists
image: golang:alpine image: xiaoqidun/goenv
commands: 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/