tldr/pages/common/gitlab-runner.md

29 lines
711 B
Markdown
Raw Normal View History

2020-10-24 13:13:16 +01:00
# gitlab-runner
> Manage GitLab runners.
2020-10-24 13:13:16 +01:00
> More information: <https://docs.gitlab.com/runner/>.
- Register a runner:
`sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}}`
- Register a runner with a Docker executor:
`sudo gitlab-runner register --url {{https://gitlab.example.com}} --registration-token {{token}} --name {{name}} --executor {{docker}}`
- Unregister a runner:
`sudo gitlab-runner unregister --name {{name}}`
- Display the status of the runner service:
`sudo gitlab-runner status`
- Restart the runner service:
`sudo gitlab-runner restart`
- Check if the registered runners can connect to GitLab:
`sudo gitlab-runner verify`