Commit 608c975e authored by 金凯强's avatar 金凯强 🎨

我晕

parent 09376283
...@@ -28,10 +28,9 @@ def install_runner(HSCUSCODE=None): ...@@ -28,10 +28,9 @@ def install_runner(HSCUSCODE=None):
with open('/etc/gitlab-runner/config.toml', 'w') as f: with open('/etc/gitlab-runner/config.toml', 'w') as f:
f.write(a) f.write(a)
s1 = os.system("sudo docker stop gitlab-runner && docker rm gitlab-runner") os.system("sudo docker stop gitlab-runner && docker rm gitlab-runner")
assert s1 == 0, "移除gitlab-runner失败"
s2 = os.system("sudo docker run --rm -d --name gitlab-runner --restart always \ s2 = os.system("sudo docker run -d --name gitlab-runner --restart always \
-v /etc/gitlab-runner:/etc/gitlab-runner \ -v /etc/gitlab-runner:/etc/gitlab-runner \
-v /var/run/docker.sock:/var/run/docker.sock \ -v /var/run/docker.sock:/var/run/docker.sock \
-v /etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh \ -v /etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh \
......
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