drone-plugins / drone-s3

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

Use environment variables to customize target location #16

Closed cdaguerre closed 8 years ago

cdaguerre commented 8 years ago

Sorry if this is obvious, but I couldn't find the answer anywhere. Is it possible to use drone environment variables in the target location? I'd like to be able to set something like:

publish:
  s3:
    target: /drone/$CI_REPO/$CI_BUILD_NUMBER/
tboerger commented 8 years ago

Yes, it's documented at http://readme.drone.io/usage/variables/#string-interpolation:2b8b8ac4006be88c769f5e3fd99b009a how you can use a predefined set of variables within the drone config.