Skip to content

alicfeng/publish_aliyun_oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drone plugin for aliyun.oss publish static resource
Based on official of sdk interface as well as dependent golang to generate.

Build Status

🚀 快速使用

基于 drone 编排

steps:
- name: oss_public_helper
  image: alicfeng/publish_aliyun_oss:latest
  settings:
    access_key_id: xxxx
    access_key_secret: xxxx
    app_publish_dir: xxxx
    oss_end_point: xxxxx
    oss_bucket_name: xxxx
    cdn_object_path: xxxx
    cdn_object_type: xxxx
    cdn_region_id: xxxx

直接容器化

docker run -it --rm \
    -v /data/one/dist:/data/dist:ro \
    -e PLUGIN_ACCESS_KEY_ID=xxx \
    -e PLUGIN_ACCESS_KEY_SECRET=xxx \
    -e PLUGIN_OSS_END_POINT=xxx \
    -e PLUGIN_OSS_BUCKET_NAME=xxx \
    -e PLUGIN_APP_PUBLISH_DIR=xxx \
    -e PLUGIN_CDN_REGION_ID=xxx \
    -e PLUGIN_CDN_OBJECT_PATH=xxx \
    -e PLUGIN_CDN_OBJECT_TYPE=xxx \
    -e PLUGIN_CDN_END_POINT=xxx \
    --name=oss_public_helper \
    alicfeng/publish_aliyun_oss:latest

✨ 配置说明

字段 必选 类型 说明 示例
access_key_id String access key id LTAI5tL3GojQ2138Lre...
access_key_secret String access key secret ngZnZmdL59fwvNad...
app_publish_dir String publish dir ./dist
oss_end_point String OSS end point oss-cn-shenzhen.aliyuncs.com
oss_bucket_name String OSS bucket name samego-demo
cdn_object_path String CDN object path https://a.b.com/
cdn_object_type String CDN object type File or Directory
cdn_region_id String CDN region id cn-shenzhen

About

Drone plugin for aliyun.oss publish static resource

Resources

Stars

Watchers

Forks

Packages

No packages published