Hello, this here will not work, the value in the config is read as a string directly. No interpolation exists for the config file. But this should be correct:
Here, in the second image MY_ENV should be bonjour, as this is a static string everything should work fine. If you try to echo the value of MY_ENV though you will not see this because the echo command is executed in the first container only.
I do think there may be a need for a secure way to insert information into the secondary container and I am not sure I can easily provide a solution for that at the moment.
I would highly recommend creating a post on our Ideas Portal for a feature suggestion. This sounds like a fairly valuable feature we should consider. https://circleci.com/ideas/