Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
deploy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Script
deploy
Commits
84f46aab
Commit
84f46aab
authored
Feb 24, 2020
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复第二次安装会报错的问题
parent
326a7211
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
init.py
init.py
+0
-2
install_runner.py
install_runner.py
+4
-4
No files found.
init.py
View file @
84f46aab
from
install_docker
import
install_docker
from
install_runner
import
install_runner
from
set_env
import
init_env
from
set_proxy
import
set_linux_global_proxy
,
set_docker_service_proxy
,
set_docekr_container_proxy
,
\
set_gitlab_runner_git_proxy
if
__name__
==
"__main__"
:
HSCUSCODE
=
init_env
()
...
...
install_runner.py
View file @
84f46aab
...
...
@@ -54,7 +54,7 @@ def register_huansi_runner(HSCUSCODE):
--tag-list huansi.{hscode}"
.
format
(
hscode
=
HSCUSCODE
))
assert
s1
==
0
,
"huansi_runner配置失败,如果要重新执行,不要再次执行init.py文件,请直接执行install_docker.py文件"
if
os
.
path
.
exists
(
'/etc/gitlab-runner'
):
if
__name__
==
'__main__'
:
if
os
.
path
.
exists
(
'/etc/gitlab-runner'
):
install_runner
()
print
(
"runner安装成功"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment