summaryrefslogtreecommitdiff
path: root/doc/update/7.12-to-7.13.md
blob: 7fc85f6f41742bdd64aaca276502e6b61909f1e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Update from 7.12 to 7.13

## Notice

__GitLab CI 7.13 requires GitLab 7.12 or higher and GitLab Multi Runner 0.5.0 or higher

### 1. Stop CI server

    sudo service gitlab_ci stop

### 2. Switch to your gitlab_ci user

```
sudo su gitlab_ci
cd /home/gitlab_ci/gitlab-ci
```

### 3. Get latest code

```
git fetch
git checkout 7-13-stable
```

### 4. Make sure GitLab CI can write to the builds/ directory

```
sudo chmod -R u+rwX builds
```

### 4. Copy secrets

The `secrets.yml` file is used to store keys to encrypt sessions and encrypt secure variables.
When you run migrations make sure to store it someplace safe.
Don't store it in the same place as your database backups,
otherwise your secrets are exposed if one of your backups is compromised.

```
sudo -u gitlab_ci -H cp config/secrets.yml.example config/secrets.yml
```

### 5. Install libs, migrations etc


```
# Install nodejs dependency:
sudo apt-get install nodejs

# For MySQL users
bundle install --without postgres development test --deployment

# For Postgres users
bundle install --without mysql development test --deployment

# Run migrations
bundle exec rake db:migrate RAILS_ENV=production
```


### 5. Start web application

    sudo service gitlab_ci start