如何升级到新安装的 gitlab runner 版本?
How to upgrade to a new installed gitlab runner version?
我尝试将我的单个 gitlab runner 从 11.0 更新到 11.3.1
并按照 gitlab doc.
上的说明进行操作
sudo apt-get install gitlab-runner 将确认我安装了新版本:
gitlab-runner is already the newest version (11.3.1).
最近的更新如 10.* 到 11.0 工作得很好,但这次
跑步者仍然停留在 11.0(在 -help 和 gitlab-ci web ui)。
重新启动跑步者不会改变任何东西,所以看起来我错过了更新的主要步骤。
如果能找出我做错了什么,那就太好了,提前致谢。 :-)
OS: Ubuntu 18.04.1
(我在 linux 和 gitlab 世界中相对较新,所以这可能是显而易见的)
使用的更新命令:
# For Debian/Ubuntu/Mint
sudo apt-get update
sudo apt-get install gitlab-runner
好的,问题已通过使用手动更新解决:
https://docs.gitlab.com/runner/install/linux-manually.html
Stop the service (you need elevated command prompt as before):
sudo gitlab-runner stop
Download the binary to replace Runner's executable:
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
You can download a binary for every available version as described in
Bleeding Edge - download any other tagged release.
Give it permissions to execute:
sudo chmod +x /usr/local/bin/gitlab-runner
Start the service:
sudo gitlab-runner start
"latest" - 可能会安装测试版,因此 select 正确的标签很重要(也在 link 中描述)
我尝试将我的单个 gitlab runner 从 11.0 更新到 11.3.1 并按照 gitlab doc.
上的说明进行操作sudo apt-get install gitlab-runner 将确认我安装了新版本:
gitlab-runner is already the newest version (11.3.1).
最近的更新如 10.* 到 11.0 工作得很好,但这次 跑步者仍然停留在 11.0(在 -help 和 gitlab-ci web ui)。
重新启动跑步者不会改变任何东西,所以看起来我错过了更新的主要步骤。
如果能找出我做错了什么,那就太好了,提前致谢。 :-)
OS: Ubuntu 18.04.1
(我在 linux 和 gitlab 世界中相对较新,所以这可能是显而易见的)
使用的更新命令:
# For Debian/Ubuntu/Mint
sudo apt-get update
sudo apt-get install gitlab-runner
好的,问题已通过使用手动更新解决:
https://docs.gitlab.com/runner/install/linux-manually.html
Stop the service (you need elevated command prompt as before):
sudo gitlab-runner stop
Download the binary to replace Runner's executable:
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64
You can download a binary for every available version as described in Bleeding Edge - download any other tagged release.
Give it permissions to execute:
sudo chmod +x /usr/local/bin/gitlab-runner
Start the service:
sudo gitlab-runner start
"latest" - 可能会安装测试版,因此 select 正确的标签很重要(也在 link 中描述)