mirror of
https://github.com/xiaoqidun/gocos.git
synced 2025-12-07 00:15:21 +08:00
feat(构建文件): 添加构建文件
This commit is contained in:
@@ -11,7 +11,7 @@ name: default
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: upload
|
- name: upload
|
||||||
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos
|
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest
|
||||||
settings:
|
settings:
|
||||||
secret_id:
|
secret_id:
|
||||||
from_secret: secret_id
|
from_secret: secret_id
|
||||||
@@ -40,7 +40,7 @@ API密钥管理获得的SecretKey
|
|||||||
|
|
||||||
### source_path
|
### source_path
|
||||||
|
|
||||||
DroneCI中文件的源位置
|
构建环境中文件的源位置
|
||||||
|
|
||||||
### target_path
|
### target_path
|
||||||
|
|
||||||
|
|||||||
25
action.yml
Normal file
25
action.yml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: '腾讯云 COS 文件上传'
|
||||||
|
description: '将文件上传到腾讯云对象存储 (COS)'
|
||||||
|
author: '肖其顿'
|
||||||
|
inputs:
|
||||||
|
secret_id:
|
||||||
|
description: 'API密钥管理获得的SecretId'
|
||||||
|
required: true
|
||||||
|
secret_key:
|
||||||
|
description: 'API密钥管理获得的SecretKey'
|
||||||
|
required: true
|
||||||
|
bucket_url:
|
||||||
|
description: '存储桶概览中的访问域名'
|
||||||
|
required: true
|
||||||
|
source_path:
|
||||||
|
description: '构建环境中文件的源位置'
|
||||||
|
required: true
|
||||||
|
target_path:
|
||||||
|
description: '存储桶中文件的目标位置'
|
||||||
|
required: true
|
||||||
|
strip_prefix:
|
||||||
|
description: '从文件的源位置剔除前缀'
|
||||||
|
required: false
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest'
|
||||||
Reference in New Issue
Block a user