Mount /tmp/builds from host to runners

This commit is contained in:
Sam Mosleh 2023-02-22 14:29:55 +03:00
parent 660b4bfe70
commit af9e984fd6
No known key found for this signature in database
GPG Key ID: 8C660F6CD8EDB813

View File

@ -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 \