0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-21 14:50:39 +00:00
Woodpecker CI plugin to perform S3 actions
Go to file
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
aws.go forgot a seek 2015-12-31 13:19:41 -08:00
Dockerfile update dockerfile, add mime.types 2015-11-13 15:25:47 -08:00
DOCS.md add support for website redirects 2015-12-04 11:24:34 -08:00
LICENSE initial commit 2015-10-16 13:09:45 -07:00
logo.svg initial commit 2015-10-16 13:09:45 -07:00
main.go tweak 2015-12-31 12:01:09 -08:00
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:19:00 -08:00
mime.types update dockerfile, add mime.types 2015-11-13 15:25:47 -08:00
README.md Added readme, drone and imagelayers badges 2016-01-17 23:24:40 +01:00
types.go add support for website redirects 2015-12-04 11:24:34 -08:00

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