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
dc1c4c7c
Commit
dc1c4c7c
authored
Oct 09, 2025
by
金凯强
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update install_runner.py
parent
676df456
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
install_runner.py
install_runner.py
+3
-3
No files found.
install_runner.py
View file @
dc1c4c7c
...
...
@@ -23,7 +23,7 @@ def install_runner(HSCUSCODE=None):
-v /etc/gitlab-runner:/etc/gitlab-runner
\
-v /var/run/docker.sock:/var/run/docker.sock
\
-v /etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh
\
gitlab
/gitlab-runner:latest"
)
47.110.145.204:8084/huansi
/gitlab-runner:latest"
)
assert
s2
==
0
,
"安装runner失败"
s3
=
os
.
system
(
"sudo docker restart gitlab-runner"
)
...
...
@@ -31,7 +31,7 @@ def install_runner(HSCUSCODE=None):
def
register_gitlab_runner
(
HSCUSCODE
):
s4
=
os
.
system
(
"sudo docker run --rm -t -i -v /etc/gitlab-runner:/etc/gitlab-runner
gitlab
/gitlab-runner register
\
s4
=
os
.
system
(
"sudo docker run --rm -t -i -v /etc/gitlab-runner:/etc/gitlab-runner
47.110.145.204:8084/huansi
/gitlab-runner register
\
-n -u https://gitlab.com/ -r Y1Px-4YpZ8qevi6vCxVY --executor docker --docker-image docker
\
--description gitlab.{hscode}
\
--tag-list {hscode}"
.
format
(
hscode
=
HSCUSCODE
))
...
...
@@ -39,7 +39,7 @@ def register_gitlab_runner(HSCUSCODE):
def
register_huansi_runner
(
HSCUSCODE
):
s1
=
os
.
system
(
"sudo docker run --rm -t -i -v /etc/gitlab-runner:/etc/gitlab-runner
gitlab
/gitlab-runner register
\
s1
=
os
.
system
(
"sudo docker run --rm -t -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
\
--description huansi.{hscode}
\
--tag-list huansi.{hscode}"
.
format
(
hscode
=
HSCUSCODE
))
...
...
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