mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
Mount /tmp/builds from host to runners
This commit is contained in:
parent
660b4bfe70
commit
af9e984fd6
@ -331,6 +331,7 @@ docker run -d \
|
||||
--name gitlab-runner \
|
||||
--restart always \
|
||||
-v gitlab-runner:/etc/gitlab-runner \
|
||||
-v /tmp/builds:/tmp/builds \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
gitlab/gitlab-runner:latest
|
||||
```
|
||||
@ -363,7 +364,11 @@ gitlab-runner \
|
||||
register -n \
|
||||
--name "Docker Runner" \
|
||||
--executor docker \
|
||||
--locked false \
|
||||
--access-level not_protected \
|
||||
--builds-dir /tmp/builds \
|
||||
--docker-image docker:latest \
|
||||
--docker-volumes /tmp/builds:/tmp/builds
|
||||
--docker-volumes /var/run/docker.sock:/var/run/docker.sock \
|
||||
--url $GITLAB_URL \
|
||||
--registration-token $GITLAB_TOKEN \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user