drone-plugins / drone-s3-sync

Drone plugin for syncing artifacts with an Amazon S3 Bucket
http://plugins.drone.io/drone-plugins/drone-s3-sync
Apache License 2.0
24 stars 32 forks source link

Support for CloudFront invalidation with given path. #43

Open skydan opened 6 years ago

skydan commented 6 years ago

Default "*" value for paths is better than nothing, but it'd be nice to have a way to manage it.

m00k commented 5 years ago

I also need this feature. It would be great if the plugin would support something like

cloudfront:
  distribution: 9c5785d3ece6a9cdefa4
  invalidation_paths:
    - "index.html"
    - "somePath/**/*.js"

resulting in invalidation of index.html and all javascript files under the path somePath (while not touching other files).

tboerger commented 5 years ago

Feel free to provide a pr that extends https://github.com/drone-plugins/drone-s3-sync/blob/master/plugin.go#L146 :)