Commit 81938e7d authored by jinkaiqiang's avatar jinkaiqiang

更换gitlab-runner镜像地址,原来的版本镜像被改到超级大

parent 80f90e3b
Pipeline #52757 passed with stages
in 1 minute and 27 seconds
...@@ -46,7 +46,7 @@ class InstallService(HSBaseUCService): ...@@ -46,7 +46,7 @@ class InstallService(HSBaseUCService):
:return: :return:
''' '''
self.delete_setting_file() self.delete_setting_file()
s1 = os.system("docker run --rm -i -v /etc/gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner register \ s1 = os.system("docker run --rm -i -v /etc/gitlab-runner:/etc/gitlab-runner 47.110.145.204:8084/huansi/gitlab-runner register \
-n -u http://47.110.145.204:8085/ -r WwpzH4qk19KjvAjEwoTz --executor docker --docker-image docker \ -n -u http://47.110.145.204:8085/ -r WwpzH4qk19KjvAjEwoTz --executor docker --docker-image docker \
--description huansi.{hscode} \ --description huansi.{hscode} \
--tag-list huansi.{hscode}".format(hscode=HSCUSCODE)) --tag-list huansi.{hscode}".format(hscode=HSCUSCODE))
...@@ -71,7 +71,7 @@ class InstallService(HSBaseUCService): ...@@ -71,7 +71,7 @@ class InstallService(HSBaseUCService):
raise HSException('项目信息未查到,请先配置') raise HSException('项目信息未查到,请先配置')
project_code = project_info['project_no'] project_code = project_info['project_no']
self.delete_setting_file() self.delete_setting_file()
s1 = os.system("docker run --rm -i -v /etc/gitlab-runner:/etc/gitlab-runner gitlab/gitlab-runner register \ s1 = os.system("docker run --rm -i -v /etc/gitlab-runner:/etc/gitlab-runner 47.110.145.204:8084/huansi/gitlab-runner register \
-n -u http://47.110.145.204:8085/ -r WwpzH4qk19KjvAjEwoTz --executor docker --docker-image docker \ -n -u http://47.110.145.204:8085/ -r WwpzH4qk19KjvAjEwoTz --executor docker --docker-image docker \
--description huansi.{hscode} \ --description huansi.{hscode} \
--tag-list huansi.{hscode}".format(hscode=project_code)) --tag-list huansi.{hscode}".format(hscode=project_code))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment