Fix auto build image not found
What does this MR do and why?
背景
我们使用 ci-image-sync 进行镜像同步,其中有两种:
- https://gitlab.com/gitlab-org/gitlab-build-images 项目中 container registry 的镜像。
-
lib/gitlab/ci/templates/
目录中 yml 文件用到的镜像。
目前对于这两种镜像同步过来后的路径我们做了不同的处理:
- 将
registry.gitlab.com
替换为registry.gitlab.cn
,gitlab-org
替换为gitlab-cn
。 - 将
registry.gitlab.com
替换为registry.gitlab.cn
,gitlab-org
不做修改。
问题
在之前 https://jihulab.com/gitlab-cn/gitlab/-/jobs/6911966 这个 job 报错的时候,我误以为是一个 gitlab-build-images 镜像,所以在 @HiveerLi 修复的时候,提出了把镜像路径中的 gitlab-org 替换为 gitlab-cn 的方案,现在开来这个其实是一个 lib/gitlab/ci/templates/
目录中 yml 文件用到的镜像,不需要做这个修改,所以我把我们覆盖的方法先拿掉了。
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
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.