gitlab 升级步骤

小版本升级,比如12.3.xx 升级到12.4.xx, 但是注意提示,如果升级不了会提示的:

gitlab preinstall: It seems you are upgrading from major version 13 to major version 14.

gitlab preinstall: It is required to upgrade to the latest 13.12.x version first before proceeding.

gitlab preinstall: Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrade-paths

  1. 下载rpm包,可以从这里下载https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ 根据自己的系统选择对应的版本
  2. gitlab-ctl stop unicorn
  3. gitlab-ctl stop sidekiq
  4. gitlab-ctl stop nginx
  5. rpm -Uvh gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm
  6. gitlab-ctl restart
  7. 查看升级后的版本号 cat /opt/gitlab/embedded/service/gitlab-rails/VERSION