mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:02:09 +02:00
gitlab-runner: add page (#4759)
This commit is contained in:
parent
5fd5e9bba2
commit
f20cd17338
1 changed files with 28 additions and 0 deletions
28
pages/common/gitlab-runner.md
Normal file
28
pages/common/gitlab-runner.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# gitlab-runner
|
||||
|
||||
> CLI tool for managing GitLab runners.
|
||||
> 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`
|
Loading…
Add table
Reference in a new issue