0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-12 17:30:39 +00:00
Woodpecker CI plugin to perform S3 actions
Go to file
Thomas Boerger dbe0439911
Merge pull request #53 from drone-plugins/renovate/golang.org-x-net-digest
Update golang.org/x/net commit hash to ed066c8
2019-01-23 14:07:19 +01:00
.github Add some basic issue template content 2019-01-21 21:02:05 +01:00
docker Add manifest template to docker folder 2019-01-20 22:21:22 +01:00
.dockerignore Restructuring of build process 2017-08-28 23:31:49 +02:00
.drone.jsonnet Execute built binary as simple test 2019-01-22 23:11:11 +01:00
.drone.windows.yml Execute built binary as simple test 2019-01-22 23:11:11 +01:00
.drone.yml Execute built binary as simple test 2019-01-22 23:11:11 +01: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
go.mod Update golang.org/x/net commit hash to ed066c8 2019-01-23 10:07:59 +00:00
go.sum Update golang.org/x/net commit hash to ed066c8 2019-01-23 10:07:59 +00: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
plugin.go Merge branch 'master' into master 2019-01-14 12:11:05 +01:00
README.md Remove duplicated badge 2019-01-21 09:30:50 +01:00
renovate.json Update renovate.json 2019-01-19 11:00:19 +01:00
types.go Restructuring of build process 2017-08-28 23:31:49 +02:00

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 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