@@ -75,15 +75,30 @@ rbenv global 2.0.0-p353
7575
7676### Setup runners
7777
78- Create the runner user and clone the gitlab-ci-runner repository:
78+ #### Create the runner user
79+
80+ Ubuntu:
7981
8082```
8183sudo gem install bundler
8284sudo adduser --disabled-login --gecos 'GitLab Runner' gitlab_ci_runner
85+ ```
86+
87+ Centos:
88+
89+ ```
90+ sudo groupadd gitlab_ci_runner
91+ sudo useradd -g gitlab_ci_runner gitlab_ci_runner
92+ ```
93+
94+ #### Clone the gitlab-ci-runner repository
95+
96+ ```
8397sudo su gitlab_ci_runner
8498cd ~/
8599git clone https://gitlab.com/gitlab-org/gitlab-ci-runner.git
86100cd gitlab-ci-runner
101+ git checkout VERSION_YOU_NEED # Ex. v5.0.0
87102```
88103
89104Install the gems for the runner:
@@ -121,17 +136,15 @@ You can also specify RUNNER_DESCRIPTION and RUNNER_TAG_LIST during setup.
121136
122137```
123138exit;
124- cd /home/gitlab_ci_runner/gitlab-ci-runner
125- sudo cp ./lib/support/upstart/gitlab-ci-runner.conf /etc/init/
139+ sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/upstart/gitlab-ci-runner.conf /etc/init/
126140```
127141
128142
129143#### Set up an init.d script (other distributions)
130144
131145```
132146exit;
133- cd /home/gitlab_ci_runner/gitlab-ci-runner
134- sudo cp ./lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
147+ sudo cp /home/gitlab_ci_runner/gitlab-ci-runner/lib/support/init.d/gitlab_ci_runner /etc/init.d/gitlab-ci-runner
135148sudo chmod +x /etc/init.d/gitlab-ci-runner
136149sudo update-rc.d gitlab-ci-runner defaults 21
137150```
@@ -176,7 +189,7 @@ In order to update the runner to a new version just go to runner directory and d
176189sudo su gitlab_ci_runner
177190cd ~ /gitlab-ci-runner
178191git fetch
179- git checkout VERSION_YOU_NEED # Ex. v4 .0.0
192+ git checkout VERSION_YOU_NEED # Ex. v5 .0.0
180193bundle
181194```
182195
0 commit comments