karancode / kustomize-github-action

:european_castle: Github action for kustomize
https://github.com/marketplace/actions/kustomize-github-action
MIT License
44 stars 28 forks source link

Consider output to file in addition to outputs? #9

Closed marccampbell closed 4 years ago

marccampbell commented 4 years ago

I have to have an additional step in all workflows using this to write the output to a file, and it loses the new lines from the built output when I do.

Would you be open to a PR that adds a new input that, if set, this action will write the contents of the built output to this file?

karancode commented 4 years ago

@marccampbell Thanks for reporting it (& the PR). But why do you need the output in a file ? And how do you plan to use it ?

Kampe commented 4 years ago

I second this, I need to write to a file, or atleast have the output be in a useable format. As like OP said, it loses all new lines due to no quotes. Look into gitops, this is a very common pattern for use with Kustomize - write out a file to another manifest repository and push the changes back to git

karancode commented 4 years ago

From gitops pov, it makes sense. Thank you guys @Kampe @marccampbell

karancode commented 4 years ago

Closing as #10 is merged! 🍻