drone-plugins / drone-s3-cache

Caches build artifacts to S3 compatible storage backends
http://plugins.drone.io/drone-plugins/drone-s3-cache
Apache License 2.0
28 stars 30 forks source link

Pass region with credentials #64

Closed donny-dont closed 4 years ago

donny-dont commented 4 years ago

The call to minio.NewWithCredentials wasn't passing in the region. This wasn't a problem when the region was in the endpoint but after the plugin was modified to gather bucket and region from the endpoint and then set it to the default this issue got identified.

Fixes https://github.com/drone-plugins/drone-s3-cache/issues/63

donny-dont commented 4 years ago

The API is at https://godoc.org/gopkg.in/minio/minio-go.v6#NewWithCredentials