Skip to content

drone-plugins/drone-s3-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

55a53b2 · Dec 15, 2022
Jan 21, 2019
Dec 8, 2022
Aug 28, 2017
Feb 15, 2019
Feb 15, 2019
Mar 31, 2019
Dec 15, 2022
Apr 25, 2018
Oct 16, 2015
Dec 8, 2022
Dec 8, 2022
Dec 8, 2022
Dec 8, 2022
Feb 18, 2019
Dec 8, 2022
Aug 28, 2017

Repository files navigation

drone-s3-sync

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com 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 command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -tags netgo -o release/linux/amd64/drone-s3-sync

Docker

Build the Docker image with the following command:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --file docker/Dockerfile.linux.amd64 --tag plugins/s3-sync .

Usage

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