0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-09 18:30:40 +00:00
Woodpecker CI plugin to perform S3 actions
Go to file
Fernando Barbosa 3c795ed19c Rm aws keys verification to allow for iam roles
Remove the validation of aws credentials, since this was blocking
the use of IAM roles for authentication.
2018-01-18 10:27:43 -02:00
vendor Updated AWS SDK to latest version 2017-09-25 09:38:14 +02:00
.dockerignore Restructuring of build process 2017-08-28 23:31:49 +02:00
.drone.yml Simple additions like base image and microbadger webhook (#30) 2017-09-03 01:07:20 +08:00
.gitignore Restructuring of build process 2017-08-28 23:31:49 +02:00
aws.go Rm aws keys verification to allow for iam roles 2018-01-18 10:27:43 -02:00
Dockerfile Simple additions like base image and microbadger webhook (#30) 2017-09-03 01:07:20 +08:00
Dockerfile.arm Simple additions like base image and microbadger webhook (#30) 2017-09-03 01:07:20 +08:00
Dockerfile.arm64 Simple additions like base image and microbadger webhook (#30) 2017-09-03 01:07:20 +08:00
Dockerfile.windows Simple additions like base image and microbadger webhook (#30) 2017-09-03 01:07:20 +08:00
LICENSE initial commit 2015-10-16 13:09:45 -07:00
main.go Add S3_SYNC_ENDPOINT environment 2017-10-28 12:02:05 +04:00
plugin.go Rm aws keys verification to allow for iam roles 2018-01-18 10:27:43 -02: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