Skip to content
forked from bonaysoft/uptoc

A cli tool for deploying files to the cloud storage.

License

Notifications You must be signed in to change notification settings

CrazyShipOne/uptoc

 
 

Repository files navigation

uptoc

uptoc is a cli tool for deploying files to the cloud storage.

Run environment

  • Mac
  • Linux
  • Windows

Support Driver

  • oss (github.com/aliyun/aliyun-oss-go-sdk/oss)
  • cos (github.com/tencentyun/cos-go-sdk-v5)
  • qiniu (github.com/qiniu/api.v7)
  • s3 (github.com/aws/aws-sdk-go/service/s3)
  • google (cloud.google.com/go/storage)

Install

Download the appropriate binary for your platform from the Releases page, or:

curl -sSf http://uptoc.saltbo.cn/install.sh | sh

Usage

Basic

uptoc --endpoint oss-cn-beijing.aliyuncs.com --access_key LTAI4FxxxxxxxBXmS3 --access_secret Vt1FZgxxxxxxxxxxxxKp380AI --bucket demo-bucket /opt/blog/public

And the access-key and access-secret support settings by the system environment

export UPTOC_UPLOADER_KEYID=LTAI4FxxxxxxxBXmS3
export UPTOC_UPLOADER_KEYSECRET=Vt1FZgxxxxxxxxxxxxKp380AI

uptoc --endpoint oss-cn-beijing.aliyuncs.com --bucket blog-bucket /opt/blog/public

Github Actions

steps:
  - name: Deploy
    uses: saltbo/uptoc@master
    with:
      driver: oss
      endpoint: oss-cn-zhangjiakou.aliyuncs.com
      bucket: saltbo-blog
      dist: public
    env:
      UPTOC_UPLOADER_KEYID: ${{ secrets.UPTOC_UPLOADER_KEYID }}
      UPTOC_UPLOADER_KEYSECRET: ${{ secrets.UPTOC_UPLOADER_KEYSECRET }}

Similar Travis

after_success:
  - curl -sSf http://uptoc.saltbo.cn/install.sh | sh
  - uptoc --endpoint uploader-cn-zhangjiakou.aliyuncs.com --bucket blog-bucket public

Args Examples

driver bucket endpoint endpoint enum
oss ut-uptoc oss-cn-hangzhou.aliyuncs.com Regions and endpoints
qiniu ut-uptoc huadong huadong,huabei,huanan,beimei,xinjiapo
cos ut-uptoc-1255970412 ap-shanghai Regions and endpoints
s3 ut-uptoc ap-northeast-1 Regions and endpoints
google ut-uptoc - -

Contact us

Author

License

About

A cli tool for deploying files to the cloud storage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 91.1%
  • Shell 4.5%
  • Makefile 3.5%
  • Dockerfile 0.9%