Add REGISTRY_HOST and REGISTRY_GROUP vars in .gitlab-ci yml
What does this MR do and why?
In order to save cross-border bandwidth for JiHu, we'd like to switch gitlab-build-images in .gitlab/ci/*.yml from registry.gitlab.com to registry.gitlab.cn.
Steps:
- Add two vars,
REGISTRY_HOSTandREGISTRY_GROUP, in upstream repo they will beregistry.gitlab.comandgitlab-org - Replace
registry.gitlab.com/gitlab-org/gitlab-build-images:[tag]with${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images:[tag] - In JiHu
jh/.gitlab-ci.yml, defineREGISTRY_HOSTandREGISTRY_GROUP. This will be in JiHu MR.
This solution is discussed with Lin and Remy here.
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.
Edited by Fu Zhang