Skip to content

Replace registry.gitlab.com in all CI templates

What does this MR do and why?

Related to issue #353815

Now we have a set of templates in jh/lib/gitlab/ci/templates directory , and these templates are almost identical to those in the lib/gitlab/ci/templates directory, only different point is jh directory template, The url host of image is registry.gitlab.cn.

In this MR !91051 (merged), we already replace all registry.gitlab.com with TEMPLATE_REGISTRY_HOST in all CI templates about security.

In this MR we continue represent all registry.gitlab.com in the remaining CI template using the environment variable TEMPLATE_REGISTRY_HOST. Then we can overwrite the environment variable TEMPLATE_REGISTRY_HOST with registry.gitlab.cn on the JH side so that we don't have to keep two different sets of templates.

/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