gitlab升级step
https://docs.gitlab.com/ee/update/
根据自己当前版本对应步骤升级
下载地址
先去官网下载完整包:https://packages.gitlab.com/gitlab/gitlab-ce?filter=rpms
gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq
PS. 升级前先备份或做快照
gitlab-rake gitlab:backup:create
升级
rpm -Uvh gitlab-ce-xxxx.rpm
升级注意
14.8.6-> 16.Y.Z
- GitLab 14: 14.0.12 > 14.3.6 > 14.9.5 > 14.10.5.
- GitLab 15: 15.0.5 > 15.1.6 (for GitLab instances with multiple web nodes) > 15.4.6 > 15.11.13.
- GitLab 16: 16.0.x (only instances with lots of users) > 16.3 > latest16.Y.Z.
15.1.6-> 15.4.6都需要安装perl
15.4.6-> 15.11.3 需要在gitlab.rb中注释gitlab_rails['smtp_enable_starttls_auto'] = true (没配置的可忽略)
16.0.x 需要先升级PostgreSQL12->13. 升级前注意磁盘空间
du -sh /var/opt/gitlab/postgresql/data
再执行, 升级postgreSQL
gitlab-ctl pg-upgrade