gitcz/.drone.yml

27 lines
687 B
YAML
Raw Normal View History

2020-08-11 18:07:46 +08:00
kind: pipeline
type: docker
name: default
steps:
2021-09-07 11:25:20 +08:00
- name: generate
pull: if-not-exists
image: hkccr.ccs.tencentyun.com/xiaoqidun/build
commands:
- build -f build.sh -i gitcz.go -o release/gitcz
2020-08-11 18:07:46 +08:00
- name: build
pull: if-not-exists
2021-09-22 10:19:24 +08:00
image: hkccr.ccs.tencentyun.com/xiaoqidun/goenv
2020-08-11 18:07:46 +08:00
commands:
2021-09-07 11:33:45 +08:00
- ./build.sh
2021-09-07 11:25:20 +08:00
- name: upload
2021-09-22 10:19:24 +08:00
image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
2021-09-07 11:25:20 +08:00
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/