Drone plugin to synchronize a directory with an S3 bucket
Go to file
2019-01-09 14:08:40 +08:00
.github Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
.appveyor.yml feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
.dockerignore Restructuring of build process 2017-08-28 23:31:49 +02:00
.drone.yml feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
.gitignore Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
aws.go feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
Dockerfile Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
Dockerfile.arm Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
Dockerfile.arm64 Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
Dockerfile.i386 Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
Dockerfile.windows Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
go.mod feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
go.sum feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
LICENSE initial commit 2015-10-16 13:09:45 -07:00
main.go feat(go): switch dep to go module (#49) 2019-01-09 00:32:13 +08:00
manifest.tmpl Updated to current build process (#39) 2018-04-25 09:10:51 +08:00
plugin.go chore: fix golint error. (#50) 2019-01-09 14:08:40 +08:00
README.md Restructuring of build process 2017-08-28 23:31:49 +02:00
types.go Restructuring of build process 2017-08-28 23:31:49 +02:00

drone-s3-sync

Build Status Join the chat at https://gitter.im/drone/drone Go Doc Go Report

Drone plugin to synchronize a directory with an Amazon S3 Bucket. 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:

go build

Docker

Build the Docker image with the following commands:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-s3-sync
docker build --rm -t plugins/s3-sync .

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_SOURCE=<source> \
  -e PLUGIN_TARGET=<target> \
  -e PLUGIN_BUCKET=<bucket> \
  -e AWS_ACCESS_KEY_ID=<access_key> \
  -e AWS_SECRET_ACCESS_KEY=<secret_key> \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/s3-sync