This is useful for local dev testing of GitLab CI.
See install for platform specific GitLab runner installation.
brew install gitlab-runner
C:\GitLab-Runner
.gitlab-runner.exe
(optional). You can download a binary for
every available version as described in
download any other tagged release.Write
permissions on the GitLab Runner
directory and executable. If you do not set these permissions, regular users can
replace the executable with their own and run arbitrary code with elevated
privileges.To download the appropriate package for your system:
For Debian or Ubuntu:
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_${arch}.deb"
For CentOS or Red Hat Enterprise Linux:
curl -LJO "https://gitlab-runner-downloads.s3.amazonaws.com/latest/rpm/gitlab-runner_${arch}.rpm"
Install the package for your system as follows.
For Debian or Ubuntu:
dpkg -i gitlab-runner_<arch>.deb
For CentOS or Red Hat Enterprise Linux:
rpm -i gitlab-runner_<arch>.rpm
Registering a runner is the process that binds the runner with one or more GitLab instances.
See register for details on platform specific register commands.
Set the URL:
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://gitlab.com/
Set the token:
Please enter the gitlab-ci token for this runner:
Fetch from Settings -> CI / CD -> Runners
Give the runner a name:
Please enter the gitlab-ci description for this runner:
my-runner-local
Add tags:
Please enter the gitlab-ci tags for this runner (comma separated):
apiopenstudio-runner
Select the executor:
Please enter the executor: docker+machine, kubernetes, custom, docker-ssh, parallels, shell, ssh, virtualbox, docker, docker-ssh+machine:
docker
The runner will now appear in GitLab: Settings -> CI / CD -> Runners