gitcz/.drone.yml
xiaoqidun d898a07ea9
All checks were successful
continuous-integration/drone/push Build is passing
feat(修正构建): 修正构建
2023-07-07 03:06:15 +08:00

33 lines
750 B
YAML

kind: pipeline
type: docker
name: default
node:
region: cn
steps:
- name: generate
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/build
commands:
- build -f build.sh -i gitcz.go -o release/gitcz
- name: build
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
commands:
- ./build.sh
- name: upload
image: ccr.ccs.tencentyun.com/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/
image_pull_secrets:
- docker_config_ccr