Commit bdc745b2915e0f23865557b4575249afc3e7d235
1 parent
d277bf4b
Exists in
master
and in
4 other branches
Make everygreen.
Showing
1 changed file
with
9 additions
and
5 deletions
Show diff stats
doc/update/patch_versions.md
1 | -# Universal update guide for patch versions. Ex. from From 6.2.0 to 6.2.1 | 1 | +# Universal update guide for patch versions. For example from 6.2.0 to 6.2.1, also see the [semantic versioning specification](http://semver.org/). |
2 | 2 | ||
3 | ### 0. Backup | 3 | ### 0. Backup |
4 | 4 | ||
@@ -14,21 +14,25 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | @@ -14,21 +14,25 @@ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production | ||
14 | 14 | ||
15 | sudo service gitlab stop | 15 | sudo service gitlab stop |
16 | 16 | ||
17 | -### 2. Get latest code for your current stable branch | 17 | +### 2. Get latest code for the stable branch |
18 | 18 | ||
19 | ```bash | 19 | ```bash |
20 | cd /home/git/gitlab | 20 | cd /home/git/gitlab |
21 | -sudo -u git -H git pull origin 6-3-stable | 21 | +sudo -u git -H git pull origin STABLE_BRANCH |
22 | ``` | 22 | ``` |
23 | 23 | ||
24 | -### 3. Update gitlab-shell if necessary | 24 | +Replace STABLE_BRANCH with the minor version you want to upgrade to, for example `6-3-stable`. |
25 | + | ||
26 | +### 3. Update gitlab-shell if it is not the latest version | ||
25 | 27 | ||
26 | ```bash | 28 | ```bash |
27 | cd /home/git/gitlab-shell | 29 | cd /home/git/gitlab-shell |
28 | sudo -u git -H git fetch | 30 | sudo -u git -H git fetch |
29 | -sudo -u git -H git checkout v1.7.9 | 31 | +sudo -u git -H git checkout LATEST_TAG |
30 | ``` | 32 | ``` |
31 | 33 | ||
34 | +Replace LATEST_TAG with the latest GitLab Shell tag you want to upgrade to, for example `v1.7.9`. | ||
35 | + | ||
32 | ### 4. Install libs, migrations, etc. | 36 | ### 4. Install libs, migrations, etc. |
33 | 37 | ||
34 | ```bash | 38 | ```bash |