Go to file
xiaoqidun 67e3da13c7
All checks were successful
continuous-integration/drone/push Build is passing
Merge branch 'main' of github.com:xiaoqidun/gocos
2023-10-07 00:04:43 +08:00
.drone.yml feat(编译参数): 调整编译参数 2023-10-06 02:26:17 +08:00
.gitignore feat(项目代码): 首次提交 2020-12-24 10:10:59 +08:00
Dockerfile feat(升级镜像): 升级镜像 2023-09-29 17:37:01 +08:00
go.mod feat(更新镜像): 更新镜像 2023-10-07 00:03:23 +08:00
go.sum feat(更新依赖): 更新依赖 2023-09-07 10:38:26 +08:00
gocos.go feat(时区设置): 默认北京时区,支持TZ环境变量 2020-12-26 10:52:32 +08:00
LICENSE Initial commit 2020-12-24 10:01:55 +08:00
README.md feat(更新镜像): 更新镜像 2023-10-07 00:03:23 +08:00

GoCOS

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

Drone CI配置例子

kind: pipeline
type: docker
name: default

steps:
  - name: upload
    image: ccr.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

从文件的源位置剔除前缀