Skip to content

Replace the host of gitlab docs images with environment variable

What does this MR do and why?

This is a modification made for compatibility with JiHu. Due to some network reasons, we cannot pull the Docker image at registry.gitlab.com in China, so we came up with a solution. In the CI templates, we replace the registry.gitlab.com/gitlab-org with the environment variable ${REGISTRY_HOST}/${REGISTRY_GROUP}. This allows us to synchronize the Docker image to our repository and use environment variables to configure the url of those images. There are already some CI templates that have made this change https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/ci/frontend.gitlab-ci.yml#L14 .

And we recently synchronized the Docker images in registry.gitlab.com/gitlab-org/gitlab-docs. So we made the same changes to docs.gitlab-ci.yml.

And other images under .gitlab/ci also has been synchronized. So we update the rest of the .yml file under .gitlab/ci, use environment variables to replace the host and group.

/cc @prajnamas

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

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.

Edited by Zehua Zhang

Merge request reports

Loading