mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-05 02:40:40 +00:00
Drone plugin to synchronize a directory with an S3 bucket
28ea5cb7de
Native |
||
---|---|---|
.drone.sec | ||
.drone.yml | ||
.gitignore | ||
aws.go | ||
Dockerfile | ||
DOCS.md | ||
LICENSE | ||
logo.svg | ||
main.go | ||
MAINTAINERS | ||
mime.types | ||
README.md | ||
types.go |
drone-s3-sync
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