I’ve found many examples where people configure with docker, in some cases if we need simple configuration for internal uses, we have also an alternative that can help to configure your GitLab CI runner easily.
In my case, i’m using Centos.
- added gitlab multi runner to yum repository
2.after added to repository install gitlab-multi runner
#sudo yum install gitlab-ci-multi-runner
once gitlab runner install, it will create “gitlab-runner” user in your machine
may find here “/home/gitlab-runner” , gitlab-runner user do not have permission you need to add it to user group or something else whatever you need.
you can also see multiple commands provided by gitlab runner
now ,we need to configure it with our gitlab hosted repository
#sudo gitlab-ci-multi-runner register
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com )
Please enter the gitlab-ci token for this runner
Please enter the gitlab-ci description for this runner
INFO fcf5c619 Registering runner… succeeded
Please enter the executor: shell, docker, docker-ssh, ssh?
running already the config should be automatically reloaded!
after gitlab runner successfully configure you will see “admin area ->Runner” in gitlab
something similar to below images
that is not completed yet you also need to configure Ci with include this file in your project root directory “”
added some configuration related to your project build and unit test running etc..
here is simple example i’ve added in “.gitlab-ci.yml” file
– cd spirng-mvc
– echo “making build”
– ./gradlew clean
– ./gradlew build
once configuration done, every commit we can run our build
may I have skip few steps, let us know if needed will update.
Thank for reading 🙂Follow @nikeshpathak