Install GitLab Runners
Install GitLab Runners
Requirements
GitLab Runner is written in Go and can be run as a single binary. No language specific
requirements are needed.
It is designed to run on the GNU/Linux, macOS, and Windows operating systems. Other
operating systems will probably work as long as you can compile a Go binary on them.
If you want to use Docker, install the latest version. GitLab Runner requires a minimum of
Docker v1.13.0.
Features
● Allows:
○ Running multiple jobs concurrently.
○ Using multiple tokens with multiple servers (even per-project).
○ Limiting number of concurrent jobs per-token.
● Jobs can be run:
○ Locally.
○ Using Docker containers.
○ Using Docker containers and executing job over SSH.
○ Using Docker containers with autoscaling on different clouds and
virtualization hypervisors.
○ Connecting to a remote SSH server.
● Is written in Go and distributed as single binary without any other requirements.
● Supports Bash and Windows PowerShell.
● Works on GNU/Linux, macOS, and Windows (pretty much anywhere you can run
Docker).
● Allows customization of the job running environment.
● Automatic configuration reload without restart.
● Easy to use setup with support for Docker, Docker-SSH, Parallels, or SSH running
environments.
● Enables caching of Docker containers.
● Easy installation as a service for GNU/Linux, macOS, and Windows.
● Embedded Prometheus metrics HTTP server.
● Referee workers to monitor and pass Prometheus metrics and other job-specific
data to GitLab
i.
b. Amd64 - https://gitlab-runner-
downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-
amd64.exe
i.
3. Create a folder somewhere in your system, ex.: C:\GitLab-Runner.
4. Copy downloaded installer to the folder created and rename it to gitlab-runner.exe
a.
5. Run an elevated command prompt: or run cmd as administrator and go to the
folder .
a. cd C:\GitLab-Runner
6. Proceed to install gitlab-runner.exe
a. gitlab-runner.exe install
7. After installation, start the getlab-runner.exe
a. gitlab-runner.exe start
b.
c. Note: error occurs because of Window7 log directory error, but it is running.
8. To check the version of the gitlab-runners use this command.
a. gitlab-runner.exe --version
b.
f.
i.
h. Note: you need to be the owner or fork from the project to be able to
go to the settings of the project.
i. Go to Setting->CI/CD tab.
i.
ii. Go to Runners and click Expand
1.
1.
iv. Paste the token to the cmd registration of gitlab-runner
v.
1.
j. Start the gitlab-runner.exe. Using
i. gitlab-runner.exe start
ii.
k. Done!.
Source: https://www.youtube.com/watch?v=2MBhxk2chhM&list=PLhW3qG5bs-L8YSnCiyQ-
jD8XfHC2W1NL_&index=6