Closed kitsirota closed 1 year ago
I don't believe that's something you can do currently, but if you want to PR it, I'm totally up for merging and releasing it!
@geofffranks Here's a PR to resolve the issue: https://github.com/geofffranks/spruce/pull/378 CC: @kitsirota
Thank you so much @TurbulentCupcake and @geofffranks!
Hello @geofffranks and @jhunt,
Hope all is well!
We are using spruce in our manifest build system and during the most recent refactor we hit a use case that I . We're running a bash script that is grabbing key names using yq to build a list of manifests we need to build and it would be really great if we could use env vars as part of the path in the spruce grab/concat operators.
For example, given two yaml files:
We're creating a list of the apps in the definition file and for each loop we set the app name as an env var. first-app second-app
Now on the manifest template side, we would like to plug in the values as env vars in the path so we can generate all the deployment manifests from a generic deployment template.
Is there a way to do something like this with spruce?
Thank you!