Gitlab升级到最新版本

一、停止服务
//查看当前版本
# cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 
# gitlab-ctl stop unicorn
ok: down: unicorn: 0s, normally up  
# gitlab-ctl stop sidekiq
ok: down: sidekiq: 0s, normally up  
# gitlab-ctl stop nginx
ok: down: nginx: 0s, normally up  
二、备份数据
# gitlab-rake gitlab:backup:create
三、下载最新包

https://packages.gitlab.com/gitlab/gitlab-ce
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/

四、安装
rpm -i gitlab-ce-8.8.1-ce.0.el6.x86_64.rpm  
五、重新应用配置和重启
# gitlab-ctl reconfigure
# gitlab-ctl restart

另一种极简单的升级方式,不过得翻墙:

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash  
yum update -y