Closed mattmm1 closed 1 year ago
@mattmm1 the environment variables you are talking about are not being shared through the plugin so there is nothing in the step itself that can use the variables values you are setting up at the step level.
As far as I understand, your issue comes from a misunderstanding of when variables are interpolated. As the variables are used in the pipeline definition itself and are not escaped, they are interpolated at the time the pipeline is uploaded with the values they have at that time: the global one. Not sure if you can actually escape them there to have them interpolated when the step runs, but you can try :)
Hey @toote yes ok. I can see the docs mention runtime variables need to be escaped so I'll try that and yep realise that's not a docker-compose plugin issue - thanks for your help here :) . I think the buildkite docs could be clearer about this though as I didn't have to escape the global variables for them to be used: https://buildkite.com/docs/pipelines/environment-variables#environment-variable-precedence-job-environment (or perhaps I just haven't seen it there). I might see if the forum is right place to raise this.
Hi I expect that in-step use of
env
variable will be interpreted in docker-compose keys rather than only intrepreting globalenv
variables.I can't tell if this is due to something in buildkite or docker-compose but I have a setup similar to the following:
I notice that the in step use of
env
is ignored. Both steps use the globalenv
settings. Have I used this instepenv
incorrectly or no buildkite plugin supports the use of instepenv
in this way? Or is it an enhancement that could be added to docker-compose plugin?I'm using
docker-compose#v4.9.0
as in the above example.Thanks - (love the plugin - constantly using it).