diff --git a/.drone.yml b/.drone.yml index a510127..a5298ec 100644 --- a/.drone.yml +++ b/.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 \ No newline at end of file + - ./ 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/ \ No newline at end of file