You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
xiaoqidun 802053acfd feat(升级依赖): 升级依赖 2 weeks ago
.drone.yml feat(发布镜像): 调整发布镜像 3 months ago
.gitignore feat(项目代码): 首次提交 12 months ago
Dockerfile feat(项目代码): 首次提交 12 months ago
LICENSE Initial commit 12 months ago
README.md feat(发布镜像): 调整发布镜像 3 months ago
go.mod feat(升级依赖): 升级依赖 2 weeks ago
go.sum feat(升级依赖): 升级依赖 2 weeks ago
gocos.go feat(时区设置): 默认北京时区,支持TZ环境变量 12 months ago

README.md

GoCOS

腾讯云对象存储(COS),Drone CI插件,AWS S3的COS实现

Drone CI配置例子

kind: pipeline
type: docker
name: default

steps:
  - name: upload
    image: hkccr.ccs.tencentyun.com/xiaoqidun/gocos
    settings:
      secret_id:
        from_secret: secret_id
      secret_key:
        from_secret: secret_key
      bucket_url:
        from_secret: bucket_url
      source: build/release
      target: build/release
      strip_prefix: build/release

Drone CI配置说明

secret_id

API密钥管理获得的SecretId

secret_key

API密钥管理获得的SecretKey

bucket_url

存储桶概览中的访问域名

source

DroneCI中文件的源位置

target

存储桶中文件的目标位置

strip_prefix

从文件的源位置剔除前缀