Drone plugin to synchronize a directory with an S3 bucket
Go to file
Thomas Boerger 3414c46490 Added readme, drone and imagelayers badges 2016-01-17 23:24:40 +01:00
.drone.sec initial commit 2015-10-16 13:09:45 -07:00
.drone.yml Fix tiny typo in the docs. 2015-10-27 16:36:54 -05:00
.gitignore initial commit 2015-10-16 13:09:45 -07:00
DOCS.md Update DOCS.md 2015-11-10 11:47:27 -08:00
Dockerfile fix incorrect path to binary in Dockerfile ADD command 2015-10-16 13:11:03 -07:00
LICENSE initial commit 2015-10-16 13:09:45 -07:00
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:19:00 -08:00
README.md Added readme, drone and imagelayers badges 2016-01-17 23:24:40 +01:00
logo.svg initial commit 2015-10-16 13:09:45 -07:00
main.go change ordering of include exclude 2015-10-16 13:34:28 -07:00

README.md

drone-s3-sync

Build Status

Drone plugin to synchronize files and folders with Amazon S3

Usage

./drone-s3-sync <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "full_name": "drone/drone"
    },
    "build": {
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
    }
}
EOF

Docker

Build the Docker container using make:

make deps build
docker build --rm=true -t plugins/drone-s3-sync .

Example

docker run -i plugins/drone-s3-sync <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "full_name": "drone/drone"
    },
    "build": {
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
    }
}
EOF