mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-16 02:50:40 +00:00
2.4 KiB
2.4 KiB
title |
---|
drone-s3-sync |
Drone plugin to synchronize a directory with an S3 bucket.
{{< toc >}}
Build
Build the binary with the following command:
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
make build
Build the Docker image with the following command:
docker build --file docker/Dockerfile.amd64 --tag thegeeklab/drone-s3-sync .
Usage
docker run --rm \
-e PLUGIN_BUCKET=my_bucket \
-e AWS_ACCESS_KEY_ID=abc123 \
-e AWS_SECRET_ACCESS_KEY=xyc789 \
-v $(pwd):$(pwd) \
-w $(pwd) \
thegeeklab/drone-s3-sync
Parameters
- endpoint
- endpoint for the s3 connection
- access-key
- s3 access key
- secret-key
- s3 secret key
- path-style
- use path style for bucket paths
- bucket
- name of the bucket
- region
- s3 region (default
us-east-1
) - source
- upload source path (default
.
) - target
- target path (default
/
) - delete
- delete locally removed files from the target
- access
- access control settings
- content-type
- content-type settings for uploads
- content-encoding
- content-encoding settings for uploads
- cache_control
- cache-control settings for uploads
- metadata
- additional metadata for uploads
- redirects
- redirects to create
- cloudfront-distribution
- id of cloudfront distribution to invalidate
- dry_run
- dry run disables api calls
- max_concurrency
- customize number concurrent files to process (default
100
)