How to Set Up a CI/CD Runner

Contents
Installing the CI Executor
The installation procedure varies by environment. This section covers Windows and Docker.
Windows-Based Executor
- Create a folder and download the installer
|
|
- Verify the installation
|
|
Registering the CI Executor
- Runners come in 3 categories
- Shared Runner: available to all projects
- Group Runner: available to projects within a group
- Specific Runner: available to a specific project
The registration process is largely the same across categories; this example uses a Shared Runner.
- Obtain the Runner Token
- Shared Runner: log in → Admin Area → Overview → Runners
- Specific Runner tokens are found in the project settings
- Group Runner tokens are found in the group settings
-
Run
.\gitlab-runner.exe registerordocker exec -it gitlab-runner gitlab-runner registerto register the runner -
Fill in the registration details
- Instance URL: the platform URL
- Registration token: the Runner Token
- Description: a description of the runner
- Tags: labels for the runner
- Maintenance note: maintenance information
- Executor: how the runner executes jobs
- If you want Docker-based CI/CD, choose docker as the executor
- Here I wanted full control over the CI/CD environment, so I chose shell
- On success you will see the following
Check the runner status