xiaoqidun 5850f0b468
All checks were successful
/ build (push) Successful in 36s
feat(更新镜像): 更新镜像
2025-12-08 10:47:31 +08:00
2020-12-24 10:10:59 +08:00
2025-12-02 10:45:33 +08:00
2025-12-08 10:47:31 +08:00
2025-12-08 10:47:31 +08:00
2025-11-09 20:14:17 +08:00
2020-12-24 10:01:55 +08:00

GoCOS

通过Gitea/Drone CI上传文件到腾讯云对象存储

Gitea配置例子

on: [ push, workflow_dispatch ]

jobs:
  default:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v6
      - name: upload to cos
        uses: xiaoqidun/gocos@main
        with:
          secret_id: ${{ secrets.secret_id }}
          secret_key: ${{ secrets.secret_key }}
          bucket_url: ${{ secrets.bucket_url }}
          source_path: build/release
          target_path: build/release
          strip_prefix: build/release

Drone配置例子

kind: pipeline
type: docker
name: default

steps:
  - name: upload to cos
    image: ccr.ccs.tencentyun.com/xiaoqidun/gocos:latest
    settings:
      secret_id:
        from_secret: secret_id
      secret_key:
        from_secret: secret_key
      bucket_url:
        from_secret: bucket_url
      source_path: build/release
      target_path: build/release
      strip_prefix: build/release

输入参数说明

secret_id

API密钥管理获得的SecretId

secret_key

API密钥管理获得的SecretKey

bucket_url

存储桶概览中的访问域名

source_path

构建环境中文件的源位置

target_path

存储桶中文件的目标位置

strip_prefix

从文件的源位置剔除前缀

Description
No description provided
Readme MIT 91 KiB
Languages
Go 93.8%
Dockerfile 6.2%