Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document using plugin from yaml #60

Open
fire opened this issue Dec 11, 2017 · 1 comment
Open

Document using plugin from yaml #60

fire opened this issue Dec 11, 2017 · 1 comment

Comments

@fire
Copy link

fire commented Dec 11, 2017

Hi indix,

Could you document how to use from yaml?

https://github.com/tomzo/gocd-yaml-config-plugin#plugin

Thank you.

@luckyrat
Copy link

luckyrat commented Aug 7, 2018

For publishing to S3, the secret sauce is how the array of source and destinations needs to be represented - a string of JSON. So this example task works for me:

  tasks:
     - plugin:
         options:
             sourceDestinations: "[{source: 'dist/*', destination: ''}]"
             destinationPrefix: "/"
             artifactsBucket: "optional-bucket-name-to-override-env-variable"
         run_if: passed
         configuration:
             id: indix.s3publish
             version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants