Add ability to specify docker registry
Feature proposal
Everywhere docker images are pulled, like here for example, is it possible to add the ability to prefix the image name with a parameterized docker registry variable such that we can pull images from the registry as opposed to Dockerhub?
So for example, this code snippet from main/templates/renovate-dind.gitlab-ci.yml
:
include: '/templates/_common.gitlab-ci.yml'
image: renovate/renovate:25.31.11-slim@sha256:19bf3a72d5c9a1f2c49269f968f40a6a2d0014f1040511673dcfd1d8488b0581
services:
- docker:20.10.6-dind@sha256:aa1e1fab842a35f16cf6e8fcb82b77b29be46f6aa8cd0fe69db0908940256be7
Would look like this:
include: '/templates/_common.gitlab-ci.yml'
image: ${DOCKER_REGISTRY}renovate/renovate:25.31.11-slim@sha256:19bf3a72d5c9a1f2c49269f968f40a6a2d0014f1040511673dcfd1d8488b0581
services:
- ${DOCKER_REGISTRY}docker:20.10.6-dind@sha256:aa1e1fab842a35f16cf6e8fcb82b77b29be46f6aa8cd0fe69db0908940256be7
My use case
In our organization, we need to use an alternate docker registry (a mirror set up in artifactory) to pull images to avoid rate limiting. We have cloned this renovate-runner
repository and created a wrapper pipeline to use it, and it works great! However, I had to modify our renovate-runner
clone in the manner outlined above to use the docker mirror rather than Dockerhub. This is not ideal, because we would like to be able to regularly pull fresh updates from the renovate-runner
repository without having to update it with a registry prefix.