Skip to content
A cli tool for deploying files to the cloud storage.
Go Makefile Shell
Branch: master
Clone or download
Latest commit 03efe26 Oct 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
oss
utils
version
.gitignore
.travis.yml
CNAME
LICENSE
Makefile
README.md
go.mod
go.sum
install.sh
main.go

README.md

uptoc

Build Status  Go Report Card  Coverage Status

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

Run environment

  • Mac
  • Linux
  • Windows

Dependent libraries

  • cli (github.com/urfave/cli)
  • oss (github.com/aliyun/aliyun-oss-go-sdk/oss)

Install

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

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

Usage

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

So you can use it like this for the travis

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

Contact us

Author

License

You can’t perform that action at this time.