feat(自动构建): 自动构建
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build was killed

This commit is contained in:
2021-09-07 12:02:56 +08:00
parent b076c947ba
commit b7521e21b7
2 changed files with 20 additions and 3 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 ihash.go -o release/ihash
- name: build
pull: if-not-exists
image: golang:alpine
image: xiaoqidun/goenv
commands:
- go build -mod=vendor ihash.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/ihash
strip_prefix: release/