Drone plugin to synchronize a directory with an S3 bucket
Go to file
Jack Spirou 28ea5cb7de Merge pull request #7 from drone-plugins/native
Native
2016-01-24 15:45:48 -06:00
.drone.sec setup native branch [CI SKIP] 2015-11-13 15:00:40 -08:00
.drone.yml setup native branch [CI SKIP] 2015-11-13 15:00:40 -08:00
.gitignore initial commit 2015-10-16 13:09:45 -07:00
DOCS.md add support for website redirects 2015-12-04 11:24:34 -08:00
Dockerfile update dockerfile, add mime.types 2015-11-13 15:25:47 -08: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
aws.go forgot a seek 2015-12-31 13:19:41 -08:00
logo.svg initial commit 2015-10-16 13:09:45 -07:00
main.go tweak 2015-12-31 12:01:09 -08:00
mime.types update dockerfile, add mime.types 2015-11-13 15:25:47 -08:00
types.go add support for website redirects 2015-12-04 11:24:34 -08: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