ihash/.drone.yml

29 lines
725 B
YAML
Raw Permalink Normal View History

2020-08-11 18:08:38 +08:00
kind: pipeline
type: docker
name: default
2023-07-07 15:04:25 +08:00
node:
region: cn
2020-08-11 18:08:38 +08:00
steps:
2021-09-07 12:02:56 +08:00
- name: generate
pull: if-not-exists
2023-07-07 15:04:25 +08:00
image: ccr.ccs.tencentyun.com/xiaoqidun/build
2021-09-07 12:02:56 +08:00
commands:
- build -f build.sh -i ihash.go -o release/ihash
2020-08-11 18:08:38 +08:00
- name: build
pull: if-not-exists
2023-07-07 15:04:25 +08:00
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
2020-08-11 18:08:38 +08:00
commands:
2021-09-07 12:02:56 +08:00
- ./build.sh
- name: upload
2023-07-12 13:09:13 +08:00
pull: if-not-exists
2023-07-07 15:04:25 +08:00
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos
2021-09-07 12:02:56 +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/ihash
strip_prefix: release/