项目作者: techknowlogick

项目描述 :
Drone plugin for publishing files to Backblaze B2
高级语言: Go
项目地址: git://github.com/techknowlogick/drone-b2.git
创建时间: 2017-12-04T16:26:50Z
项目社区:https://github.com/techknowlogick/drone-b2

开源协议:Apache License 2.0

下载


drone-b2

Drone plugin to publish files and artifacts to Backblaze B2. For the
usage information and a listing of the available options please take a look at
the docs.

Build

Build the binary with the following commands:

  1. go build
  2. go test

Docker

Build the Docker image with the following commands:

  1. CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -tags netgo
  2. docker build --rm=true -t techknowlogick/drone-b2 .

Please note incorrectly building the image for the correct x64 linux and with
CGO disabled will result in an error when running the Docker image:

  1. docker: Error response from daemon: Container command
  2. '/bin/drone-b2' not found or does not exist..

Usage

Execute from the working directory:

  1. docker run --rm \
  2. -e PLUGIN_SOURCE=<source> \
  3. -e PLUGIN_TARGET=<target> \
  4. -e PLUGIN_BUCKET=<bucket> \
  5. -e B2_ACCOUNT_ID=<token> \
  6. -e B2_APPLICATION_KEY=<secret> \
  7. -v $(pwd):$(pwd) \
  8. -w $(pwd) \
  9. techknowlogick/drone-b2 --dry-run

Thanks

This plugin is forked form drone-s3 and changed to use Backblaze B2