以下是在Debian系统上更新与升级GitLab的指南:
sudo gitlab-rake gitlab:backup:create命令备份GitLab的数据、配置文件和数据库。sudo gitlab-rake gitlab:env:info命令查看当前GitLab版本。sudo apt update和sudo apt upgrade命令,将Debian系统更新到最新版本。wget https://packages.gitlab.com/gitlab/gitlab-ce/script.deb.sh,然后执行sudo bash script.deb.sh,它会自动完成升级。sudo apt-get purge gitlab-ce gitlab-ce-cli gitlab-workhorse,再添加仓库curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash,最后安装新版本sudo apt-get update和sudo apt-get install gitlab-ce。sudo gitlab-ctl reconfigure重新配置GitLab,然后通过sudo gitlab-ctl restart重启服务。sudo gitlab-rake gitlab:check命令来确认升级成功。