Expand variables for the docker platform with unit tests
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do?
Adds the ability to use variables when setting the docker platform.
Why was this MR needed?
Sometimes it is desirable to run a job over multiple platforms without cross compiling with a parallel matrix. This isn't presently possible because variables in the docker platform of a job are not expanded. This helps to reduce the amount of copy and paste code in jobs.
What's the best way to test this MR?
The MR includes unit tests. There is probably some high level testing that could be done as well.
What are the relevant issue numbers?
closes #38290 (closed)
Edited by Hannes Hörl