Getting Started with GitLab Runner

To create and connect a new runner to your repository after creating a GitLab repository, proceed through the cloud software installation page. (You can also use this software to automate CI/CD processes in other repositories.)

Before starting, obtain the repository address, group, and token for the repository where you want the runner to be active.

Repository or Group Address

Log into the GitLab panel and find this address from your browser or enter it manually. The format is as follows:

gitlab.example.com/YourRepoName/YourProjectOrGroupName

Install App: gitlab-runner-group-selecet

Token

Go to the Build section and click on the Runners option to create a new runner.

Install App: gitlab-runner-tab App Install: gitlab-runner-new-btn Enter the runner specifications as needed. App Install: gitlab-runner-new After creating the runner, obtain the token from this section. App Install: gitlab-runner-new App Install: gitlab-runner-new

Software Installation

On the start page, select to install new software. App Install: gitlab-runner-install Then enter the name (slug) of your runner. If you want to choose the capacity yourself, from the specified section, select a capacity in multiples of five and greater than your current plan.

App Install: gitlab-runner-specs

You can see the repository address connected to the runner on the overview page. App Install: gitlab-runner-overview

In your panel, you can view the list of available runners and pause, edit, or delete them.

App Install: gitlab-runner-runner-options

You can also create a new runner from the 不1Settings > CI/CD` section.

App Install: gitlab-runner-add-new

Running a Sample Job

After creating the runner, to run a CI job in your repository, create a file named yml.

App Install: gitlab-runner-ci

Copy your script into it.

App Install: gitlab-runner-ci

Now from the Build section, you can view your pipeline and the stage it is in, as well as how it is executed.

App Install: gitlab-runner-specs

Pipeline graph:

App Install: gitlab-runner-pipeline-graph

Status of each runner:

App Install: gitlab-runner-status