Closed roo-oliv closed 4 years ago
Maybe you should take a look at the StringMapFlag
as it's used within https://github.com/drone-plugins/drone-s3-sync/blob/master/main.go#L59-L64 instead of the yaml marshaling.
This looks much better. What do you think @bradrydzewski?
Replaced by https://github.com/drone-plugins/drone-s3/pull/34 now. Thanks for your efforts!
drone-s3 plugin already attempts to match file extensions with their corresponding mimetypes. But it may be the case that one want to force a certain mimetype for a file extension.
This PR adds support for doing so:
content_type
may be used like this: