Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

33
tldr/gitlab-runner Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gitlab-runner
> Manage 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`