This commit is contained in:
16
.drone.yml
16
.drone.yml
@ -13,20 +13,18 @@ steps:
|
||||
- name: node_modules_cache
|
||||
path: /drone/src/node_modules
|
||||
|
||||
# 第二步:上传静态资源到腾讯云COS
|
||||
# 第二步:上传静态资源到腾讯云COS (使用另一个插件)
|
||||
- name: 上传到腾讯云
|
||||
image: ccr.ccs.tencentyun.com/dronestock/cos
|
||||
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos
|
||||
settings:
|
||||
endpoint: https://files-1302416092.cos.ap-shanghai.myqcloud.com
|
||||
secret:
|
||||
id:
|
||||
secret_id:
|
||||
from_secret: cos_secret_id
|
||||
key:
|
||||
secret_key:
|
||||
from_secret: cos_secret_key
|
||||
source: dist/*
|
||||
bucket_url: https://files-1302416092.cos.ap-shanghai.myqcloud.com
|
||||
source: dist
|
||||
target: /
|
||||
strip_components: 1
|
||||
clean: true
|
||||
strip_prefix: dist
|
||||
|
||||
# 第三步:部署到服务器
|
||||
- name: deploy
|
||||
|
Reference in New Issue
Block a user