drone-plugins / drone-s3

Drone plugin for publishing artifacts to Amazon S3
http://plugins.drone.io/drone-plugins/drone-s3
Apache License 2.0
36 stars 64 forks source link

Support storage class #52

Closed alkalinecoffee closed 3 years ago

alkalinecoffee commented 5 years ago

The plugin should support specifying a storage class. This allows users to upload artifacts to lower cost storage backends.

From the CLI docs:

--storage-class (string) The type of storage to use for the object.
  Valid choices are: STANDARD | REDUCED_REDUNDANCY | STANDARD_IA | ONEZONE_IA.
  Defaults to 'STANDARD'
tboerger commented 4 years ago

After merging https://github.com/drone-plugins/drone-s3/pull/62 you should be able to use a setting like this:

- name: s3 upload
  image: plugins/s3
  settings:
    storage_class: GLACIER
    ...