Allow specifying Docker image platform to pull
What does this MR do and why?
See !112907 (merged). This MR adds this feature back after it was reverted !137084 (merged).
Added an additional change to handle variables defined at the service
level
Closes #431865 (closed), gitlab-runner#27919 (closed), gitlab-runner#28653 (closed)
Allow specifying Docker image platform to pull
It will allow different architecture images to be used on systems that support multi-architectures.
This will add two new syntax in the CI config file;
- image:docker:platform
- services:docker:platform
They are sent to Runner via executor_opts
, then, they map to the docker pull --platform
option.
Changelog: added
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.