Syntax to refer to env var in container.image #26324
-
I can’t figure out the syntax to refer to an environment variable in This works OK:
(I’ve left out the specifics of what the job is going but the point here is that this is running on a container image) However if I do this:
It fails with:
I’ve tried various other ways to get it to refer to the image name stored in my env var
but I can’t figure out the syntax. Help!! |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
There is unfortunately no syntax that works, the
|
Beta Was this translation helpful? Give feedback.
-
Yes, very disappointing, thanks for the answer. |
Beta Was this translation helpful? Give feedback.
-
I don’t know if it fill your need, but you could run a job that reads the env value and set it as an output…
|
Beta Was this translation helpful? Give feedback.
-
Hi @blackjid, Did this really work for you? We would really need some way to get the env vars or outputs working in the container.images With the following for building an image to use for tests, I get this error at “Initialize containers”:
Workflow:
|
Beta Was this translation helpful? Give feedback.
-
I stumbled upon this thread while looking for how to run a job in a container with an image built in a previous job. |
Beta Was this translation helpful? Give feedback.
There is unfortunately no syntax that works, the
env
context is not available there. Relevant quote from the contexts documentation: