Coder Social home page Coder Social logo

drone-cos's Introduction

qcloud cos

参数

  • PLUGIN_DEBUG 是否开启调试模式

  • PLUGIN_PAUSE 是否开启sleep模式

  • PLUGIN_PROXY 设置代理模式

  • PLUGIN_BUCKET bucket name

  • PLUGIN_ACCESSKEY/PLUGIN_SECRETKEY accesskey/secretkey

  • PLUGIN_REGION/PLUGIN_ENDPOINT region或者endpoint

region: ap-shanghai
endpoint: cos.ap-shanghai.myqcloud.com
  • PLUGIN_SOURCE 源文件路径
  • PLUGIN_TARGET 目标文件路径
  • PLUGIN_STRIP_PREFIX 是否去除前缀

路径不包含*, 类似aaa

  • PLUGIN_AUTOTIME 自动添加时间目录 如 /aaa/ 则会自动添加 /aaa/0407/
  • PLUGIN_TIMEFORMAT Go时间格式 如 0102

使用示例

for k8s

  - name: build-stable
    image: ysicing/drone-plugin-cos
    privileged: true
    pull: always
    settings:
      region: ap-shanghai
      bucket:
        from_secret: s3-bucket
      accesskey:
        from_secret: s3-access-key
      secretkey:
        from_secret: s3-secret-key
      source: dist/*
      target:
        from_secret: s3-stable-path
    when:
      event:
      - tag

  - name: build-edge
    image: ysicing/drone-plugin-cos
    privileged: true
    pull: always
    settings:
      region: ap-shanghai
      autotime: true
      bucket:
        from_secret: s3-bucket
      accesskey:
        from_secret: s3-access-key
      secretkey:
        from_secret: s3-secret-key
      source: dist/*
      target:
        from_secret: s3-edge-path
    when:
      branch:
      - master

drone-cos's People

Contributors

ysicing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.