Commit e758e67b authored by 金凯强's avatar 金凯强 🎨

增加缓存

parent 8293460c
......@@ -24,7 +24,7 @@ def install_runner(HSCUSCODE=None):
with open('/etc/gitlab-runner/config.toml', 'r') as f:
s = f.read()
a = s.replace(' volumes = ["/cache"]',
'volumes = ["/var/run/docker.sock:/var/run/docker.sock","/etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh" ,"/cache"]')
'volumes = ["/var/run/docker.sock:/var/run/docker.sock","/etc/profile.d/huansi.sh:/etc/profile.d/huansi.sh" ,"/cache","/huansi/gitlab-runner/builds:/builds/hs"]')
with open('/etc/gitlab-runner/config.toml', 'w') as f:
f.write(a)
......
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