gitcz/.drone.yml

28 lines
700 B
YAML
Raw Permalink Normal View History

2020-08-11 18:07:46 +08:00
kind: pipeline
type: docker
name: default
node:
region: cn
2020-08-11 18:07:46 +08:00
steps:
2021-09-07 11:25:20 +08:00
- name: generate
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/build
2021-09-07 11:25:20 +08:00
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
image: ccr.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
image: ccr.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
2023-07-07 03:10:42 +08:00
strip_prefix: release/