Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

Drone S3 Sync

This is a Drone plugin to synchronize a directory with an Amazon S3 Bucket.

How to build

Be sure that a docker process is active, then just cd into this repo an type.

$~: ./buildPush.sh

What's new

You can add cache properties like ".js": "public, max-age: 10000000" on every filetype.

Example:
cache_control:
      ".js": "public, max-age: 10000000"

You can add type properties like ".svg": image/svg+xml on every filetype.

Example:
content_type:
      ".svg": image/svg+xml

You can add encoding properties like ".js": gzip on every filetype.

Example:
content_encoding:
      ".js": gzip

Full usage Example

An usage example with all available commands.

publish:
  s3_sync:
    image: ribase/drone-s3-sync
    acl: public-read
    region: "eu-west-1"
    bucket: "ksbassets"
    access_key: $$access_key
    secret_key: $$secret_key
    source: /dist
    target: /ksb/prod/
    recursive: true
    cache_control:
      ".js": "public, max-age: 10000000"
    content_type:
      ".svg": image/svg+xml
      ".js": application/javascript
      ".css": text/css
    content_encoding:
      ".js": gzip
      ".css": gzip
    when:
      branch: master

Credits

Sebastian Thadewald

Many thanks to the The Original Repo

License

See LICENSE.md in repository.

Issues?

Drop an issue

Docker Pull Command
Owner
ribase

Comments (0)