Trying to assign some labels to better track how our CI/CD and runners are working. I cannot seem to get the predefined $CI_JOB_IMAGE to work and just want to confirm if it’s supposed to.
Basically in the config.toml for the runner adding this-
<other config here>
[runners.docker.container_labels]
"image" = "${CI_JOB_IMAGE}"
Other env vars seem to work. I figure it should know the image since it’s going to instantiate the container anyhow and should be labeling it as such. But no matter what I try it seems to come up empty.
Just wanting to know if it should work and if I need to somehow do something else. Changing the value of the label (to “jobimage” or some other value) doesn’t matter. I can confirm that the env var is properly known and set in the actual container by inspecting it as it’s running.