... | ... | @@ -77,6 +77,33 @@ See : |
|
|
* <https://wiki.inria.fr/ciportal/Web_Portal_Tutorial> to create a slave on Inria's CI platform and access it (you can ignore the jenkins related parts)
|
|
|
* <https://docs.gitlab.com/runner/install/> for the official documentation to install the runner on the vm(s) you've created.
|
|
|
|
|
|
|
|
|
#### Installation example on a GNU/linux slave from ci.inria.fr ("ci" user account)
|
|
|
```
|
|
|
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
|
|
|
sudo chmod +x /usr/local/bin/gitlab-runner
|
|
|
sudo gitlab-runner install --user=ci --working-directory=/builds
|
|
|
sudo gitlab-runner start
|
|
|
sudo gitlab-runner status # should return "service is running"
|
|
|
```
|
|
|
|
|
|
#### Installation example on a macOS slave from ci.inria.fr ("ci" user account)
|
|
|
```
|
|
|
sudo curl --output /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-darwin-amd64
|
|
|
sudo chmod +x /usr/local/bin/gitlab-runner
|
|
|
gitlab-runner install --working-directory /Users/ci
|
|
|
gitlab-runner start
|
|
|
gitlab-runner status # should return "service is running"
|
|
|
```
|
|
|
|
|
|
#### Installation example on a Windows slave from ci.inria.fr ("ci" user account)
|
|
|
```
|
|
|
# Follow https://docs.gitlab.com/runner/install/windows.html then when installing the service prefer the following to use the existing "ci" user account
|
|
|
gitlab-runner install -u ".\ci" -p "ci" -d "C:\Users\ci"
|
|
|
gitlab-runner start
|
|
|
gitlab-runner status # should return "service is running"
|
|
|
```
|
|
|
|
|
|
### Register a runner in your project
|
|
|
|
|
|
On the virtual machine where you installed the gitlab CI runner, run (as root or sudo!) :
|
... | ... | |