gitlab-runner: add page (#4759)

beep
Pierre Rudloff 2020-10-24 14:13:16 +02:00 committed by GitHub
parent 5fd5e9bba2
commit f20cd17338
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View 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`