Skip to content
Snippets Groups Projects
Unverified Commit d0b50b82 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis
Browse files

Add info on upgrading to Runner 10

Also clean up the README and move relevant info in the docs
parent 7098275c
Branches
No related tags found
No related merge requests found
...@@ -10,58 +10,8 @@ The old name of this project was GitLab CI Multi Runner but please use "GitLab R ...@@ -10,58 +10,8 @@ The old name of this project was GitLab CI Multi Runner but please use "GitLab R
## Runner and GitLab CE/EE compatibility ## Runner and GitLab CE/EE compatibility
GitLab Runner >= 9.0 requires GitLab's API v4 endpoints, which were introduced in For a list of compatible versions between GitLab and GitLab Runner, consult
GitLab CE/EE 9.0. the [compatibility chart](https://docs.gitlab.com/runner/#compatibility-chart).
Because of this **Runner >= 9.0 requires GitLab CE/EE >= 9.0 and will not work
with older GitLab versions**.
Old API used by Runner will be still present in GitLab >= versions until August 2017.
Until then we will also support the v1.11.x version of Runner.
> This means that if you want to have a newer version of GitLab CE/EE but for some
reason you don't want to install newer version of Runner, 1.11.x will be still
maintained and will be working with GitLab CE/EE until August 2017. It may not
support some new features, but any bugs or security violations will be handled
as for the stable version.
### Compatibility chart
| | 8.16.x (01.2017) | 8.17.x (02.2017) | 9.0.x (03.2017) | 9.1.x (04.2017) | 9.2.x (05.2017) | 9.3.x (06.2017) | 9.4.x (07.2017) | 9.5.x (08.2017) | 10.0.x (09.2017) |
|:------------------:|:----------------:|:----------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|
| v1.10.x | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** | Y, **u** | Y, **u** | **N**, **u** |
| v1.11.x | Y | Y, s | Y, s | Y, s | Y, s | Y, s | Y, s | Y, s | **N**, **u** |
| v9.0.x | **N** | **N** | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** | Y, **u** |
| v9.1.x | **N** | **N** | Y | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** |
| v9.2.x | **N** | **N** | Y | Y | Y, s | Y, s | Y, s | Y, **u** | Y, **u** |
| v9.3.x | **N** | **N** | Y | Y | Y | Y, s | Y, s | Y, s | Y, **u** |
| v9.4.x | **N** | **N** | Y | Y | Y | Y | Y, s | Y, s | Y, s |
| v9.5.x | **N** | **N** | Y | Y | Y | Y | Y | Y, s | Y, s |
| v10.0.x _(planned)_ | **N** | **N** | Y | Y | Y | Y | Y | Y | Y, s |
**Legend**
* Y - specified Runner version is/will be working with specified GitLab version
* N - specified Runner version is/will not be working with specified GitLab version
* s - specified Runner version is supported
* u - specified Runner version is not supported
### How to install older versions
Let's assume that you want to install version 1.11.2 of Runner:
1. If you're using DEB/RPM based installation:
```bash
# for DEB based systems
root@host:# apt-get install gitlab-runner=10.0.0
# for RPM based systems
root@host:# yum install gitlab-runner-10.0.0-1
```
1. If you need to install Runner manually, you can look for a propper package/binary
at https://gitlab-runner-downloads.s3.amazonaws.com/v10.0.0/index.html
## Release process ## Release process
...@@ -102,7 +52,7 @@ read the documentation online at https://docs.gitlab.com/runner/. ...@@ -102,7 +52,7 @@ read the documentation online at https://docs.gitlab.com/runner/.
[Read about the features of GitLab Runner.](https://docs.gitlab.com/runner/#features) [Read about the features of GitLab Runner.](https://docs.gitlab.com/runner/#features)
## Compatibility chart ## Executors compatibility chart
[Read about what options each executor can offer.](https://docs.gitlab.com/runner/executors/#compatibility-chart) [Read about what options each executor can offer.](https://docs.gitlab.com/runner/executors/#compatibility-chart)
...@@ -126,27 +76,10 @@ Read the [FAQ](https://docs.gitlab.com/runner/faq/). ...@@ -126,27 +76,10 @@ Read the [FAQ](https://docs.gitlab.com/runner/faq/).
See [https://docs.gitlab.com/runner/#advanced-configuration](https://docs.gitlab.com/runner/#advanced-configuration). See [https://docs.gitlab.com/runner/#advanced-configuration](https://docs.gitlab.com/runner/#advanced-configuration).
## Extra projects?
If you want to add another project, token or image simply RE-RUN SETUP.
*You don't have to re-run the runner. It will automatically reload configuration once it changes.*
## Changelog ## Changelog
Visit the [Changelog](CHANGELOG.md) to view recent changes. Visit the [Changelog](CHANGELOG.md) to view recent changes.
### Version 0.5.0
Version 0.5.0 introduces many security related changes.
One of such changes is the different location of `config.toml`.
Previously (prior 0.5.0) config was read from current working directory.
Currently, when `gitlab-runner` is executed by `root` or with `sudo` config is read from `/etc/gitlab-runner/config.toml`.
If `gitlab-runner` is executed by non-root user, the config is read from `$HOME/.gitlab-runner/config.toml`.
However, this doesn't apply to Windows where config is still read from current working directory, but this most likely will change in future.
The config file is automatically migrated when GitLab Runner was installed from GitLab's repository.
**For manual installations the config needs to be moved by hand.**
## The future ## The future
* Please see the [GitLab Direction page](https://about.gitlab.com/direction/). * Please see the [GitLab Direction page](https://about.gitlab.com/direction/).
......
...@@ -45,6 +45,37 @@ installed. ...@@ -45,6 +45,37 @@ installed.
- Easy installation as a service for GNU/Linux, OSX and Windows - Easy installation as a service for GNU/Linux, OSX and Windows
- Embedded Prometheus metrics HTTP server - Embedded Prometheus metrics HTTP server
## Compatibility chart
CAUTION: **Important:**
GitLab Runner >= 9.0 requires GitLab's API v4 endpoints, which were introduced
in GitLab CE/EE 9.0. Because of this change, GitLab Runner >= 9.0 requires
GitLab CE/EE >= 9.0 and will not work with older GitLab versions.
The old API used by GitLab Runner was deprecated in August 2017 and with this
the v1.11.x version of GitLab Runner is deprecated as well.
In the following table you can see the compatibility chart between GitLab and
GitLab Runner.
| | 8.16.x (01.2017) | 8.17.x (02.2017) | 9.0.x (03.2017) | 9.1.x (04.2017) | 9.2.x (05.2017) | 9.3.x (06.2017) | 9.4.x (07.2017) | 9.5.x (08.2017) | 10.0.x (09.2017) |
|:---------|:----------------:|:----------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|:---------------:|
| v1.10.x | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** | Y, **u** | Y, **u** | **N**, **u** |
| v1.11.x | Y | Y, s | Y, s | Y, s | Y, s | Y, s | Y, s | Y, s | **N**, **u** |
| v9.0.x | **N** | **N** | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** | Y, **u** |
| v9.1.x | **N** | **N** | Y | Y, s | Y, s | Y, s | Y, **u** | Y, **u** | Y, **u** |
| v9.2.x | **N** | **N** | Y | Y | Y, s | Y, s | Y, s | Y, **u** | Y, **u** |
| v9.3.x | **N** | **N** | Y | Y | Y | Y, s | Y, s | Y, s | Y, **u** |
| v9.4.x | **N** | **N** | Y | Y | Y | Y | Y, s | Y, s | Y, s |
| v9.5.x | **N** | **N** | Y | Y | Y | Y | Y | Y, s | Y, s |
| v10.0.x | **N** | **N** | Y | Y | Y | Y | Y | Y | Y, s |
**Legend**
* Y - specified Runner version is/will be working with specified GitLab version
* N - specified Runner version is/will not be working with specified GitLab version
* s - specified Runner version is supported
* u - specified Runner version is not supported
## [Install GitLab Runner](install/index.md) ## [Install GitLab Runner](install/index.md)
GitLab Runner can be installed and used on GNU/Linux, macOS, FreeBSD and Windows. GitLab Runner can be installed and used on GNU/Linux, macOS, FreeBSD and Windows.
......
# Install GitLab Runner using the official GitLab repositories # Install GitLab Runner using the official GitLab repositories
Currently we support: The currently supported distributions are:
- Debian - Debian
- Ubuntu - Ubuntu
- RHEL - RHEL
- CentOS - CentOS
- Fedora (added in 10.0)
If you want to use the [Docker executor], install it before using the Runner: ## Prerequisites
```bash If you want to use the [Docker executor], make sure to install Docker before
curl -sSL https://get.docker.com/ | sh using the Runner. [Read how to install Docker for your distribution](https://docs.docker.com/engine/installation/).
```
## Installing the Runner ## Installing the Runner
CAUTION: **Important:**
If you are using or upgrading from a version prior to GitLab Runner 10, read how
to [upgrade to the new version](#upgrading-to-gitlab-runner-10).
To install the Runner: To install the Runner:
1. Add GitLab's official repository: 1. Add GitLab's official repository:
**For GitLab Runner 10.0 and newer**
```bash ```bash
# For Debian/Ubuntu # For Debian/Ubuntu
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
# For RHEL/CentOS # For RHEL/CentOS/Fedora
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
``` ```
**For versions older than 10.0, please use**
```bash
# For Debian/Ubuntu
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
# For RHEL/CentOS
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
```
>**Note:** >**Note:**
_Debian users should use APT pinning_ _Debian users should use APT pinning_
> >
...@@ -60,26 +52,27 @@ To install the Runner: ...@@ -60,26 +52,27 @@ To install the Runner:
EOF EOF
``` ```
1. Install `gitlab-runner`: 1. Install the latest version of GitLab Runner, or skip to the next step to
install a specific version:
**For GitLab Runner 10.0 and newer**
```bash ```bash
# For Debian/Ubuntu # For Debian/Ubuntu
sudo apt-get install gitlab-runner sudo apt-get install gitlab-runner
# For RHEL/CentOS # For RHEL/CentOS/Fedora
sudo yum install gitlab-runner sudo yum install gitlab-runner
``` ```
**For versions older than 10.0, please use** 1. To install a specific version of GitLab Runner:
```bash ```bash
# For Debian/Ubuntu # for DEB based systems
sudo apt-get install gitlab-ci-multi-runner apt-cache madison gitlab-runner
sudo apt-get install gitlab-runner=10.0.0
# For RHEL/CentOS # for RPM based systems
sudo yum install gitlab-ci-multi-runner yum list gitlab-runner --showduplicates | sort -r
sudo yum install gitlab-runner-10.0.0-1
``` ```
1. [Register the Runner](../register/index.md) 1. [Register the Runner](../register/index.md)
...@@ -94,33 +87,53 @@ some of the most common problems with GitLab Runner. ...@@ -94,33 +87,53 @@ some of the most common problems with GitLab Runner.
Simply execute to install latest version: Simply execute to install latest version:
**For GitLab Runner 10.0 and newer**
```bash ```bash
# For Debian/Ubuntu # For Debian/Ubuntu
sudo apt-get update sudo apt-get update
sudo apt-get install gitlab-runner sudo apt-get install gitlab-runner
# For RHEL/CentOS # For RHEL/CentOS/Fedora
sudo yum update sudo yum update
sudo yum install gitlab-runner sudo yum install gitlab-runner
``` ```
## Manually download packages
**For versions older than 10.0, please use** You can manually download the packages from the following URL:
<https://packages.gitlab.com/runner/gitlab-runner>
```bash ## Upgrading to GitLab Runner 10
In GitLab Runner 10, the name of the executable was named from `gitlab-ci-multi-runner`
to just `gitlab-runner`. With that change, GitLab Runner
[has a new home](https://gitlab.com/gitlab-org/gitlab-runner) and the package
repository [was renamed as well](https://packages.gitlab.com/runner/gitlab-runner).
To upgrade GitLab Runner from a version older than 10.0:
1. Remove the old repository:
```
# For Debian/Ubuntu # For Debian/Ubuntu
sudo apt-get update sudo rm /etc/apt/sources.list.d/runner_gitlab-ci-multi-runner.list
sudo apt-get install gitlab-ci-multi-runner
# For RHEL/CentOS # For RHEL/CentOS
sudo yum update sudo rm /etc/yum.repos.d/runner_gitlab-ci-multi-runner.repo
sudo yum install gitlab-ci-multi-runner
``` ```
## Manually download packages 1. Follow the same steps when [installing the Runner](#installing-the-runner),
**without registering it** and using the new repository.
You can manually download the packages from the following URL: ## Old GitLab Runner URLs
<https://packages.gitlab.com/runner/gitlab-runner>
For versions older than 10.0, replace the repository URLs in the install section
with the following:
```bash
# For Debian/Ubuntu
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash
# For RHEL/CentOS
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.rpm.sh | sudo bash
```
[docker executor]: ../executors/docker.md [docker executor]: ../executors/docker.md
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment