gitlab-runner升级到最新版本 - 简书
source link: https://www.jianshu.com/p/4adb7c01cbb0?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
gitlab-runner升级到最新版本
之前的文章介绍了GitLab Runner安装,在Ubuntu上默认直接安装了gitlab-runner,命令为:
sudo apt install gitlab-runner
但其实安装的版本为10.5.0
,使用命令gitlab-runner -v
可以查看,在运行docker executor出现错误:
Gitlab CI Build failed gitlab-runner-prebuilt.tar.xz: no such file or directory
出现这个问题的原因是因为gitlab-runner的版本过低,当前gitlab-runner最新版本为:12.7.1
解决办法:升级gitlab-runner为最新版本,先升级包:
# For Debian/Ubuntu/Mint
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
# For RHEL/CentOS/Fedora
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash
需要先安装curl。
再安装最近版本的gitlab-runner:
apt update
apt upgrade
# or
apt install gitlab-runner
查看当前gitlab-runner版本:
gitlab-runner -v
Version: 12.7.1
Git revision: 003fe500
Git branch: 12-7-stable
GO version: go1.13.5
Built: 2020-01-23T09:08:54+0000
OS/Arch: linux/amd64
本文由 Matrixport
姜家志 编写,转载无需授权Matrixport
是一站式数字资产金融平台,致力于打造下一代区块链金融平台,为加密经济而生
Recommend
-
177
Gitlabrunner注册至GitlabCIgitlab-ci-multi-runnerregister报如下错误:ERROR:Registeringrunner...failedrunner=SWe61F9sstatus=401UnauthorizedPANIC:Failedtoregisterthisrunner.PerhapsyouarehavingnetworkproblemsGitla
-
39
从源码安装 GitLab 你或许听说过,但是从源码安装 GitLab Runner ,或许这将是你听到的第一篇相关博客。 最近遇到一个问题,需要手动编译构建 GitLab Runner,而官方文档陈旧、命令过时,如果按照官方错误的指引搞下去,难免会浪费...
-
32
Gitlab Runner+Helm实现PHP程序自动化构建与部署最佳实践 ko...
-
10
使用 GitLab Runner 为 R 包配置持续集成服务众所周知,R 是一个跨平台统计软件,支持 Debian Ubu...
-
11
如何让 Gitlab 的 Runner 在构建时拉取 Git Submodules 仓库默认的 GitLab 的 Runner 在构建时不会去拉取 Git Submodules 仓库,将会提示 Skipping Git submodules setup 跳过初始化 Git Submodule 仓库 如
-
4
配置GitLab Runner跑CI 2021-05-02 10:56:46 +08 字数:2764 标签: CI Git
-
5
假定你已经有一台可用的,可联网的机器 Preface 这篇文章将介绍如何使用自己的机器来搭建用于 Gitlab CI 的 runner. 在搭建自己的 CI Runner 之前,需要先明确一些概念: CI (Continuous Integration)
-
13
11 March 2021 / gitlab #gitlab-runner Could not resolve host 用docker运行gitlab和gitlab-runner,并且二者运行在同一台机器上。 git...
-
2
gitlab cicd没有用tag指定runner,为什么每次都是运行的众多share runner中的特定一个? 开源问答
-
7
目的:摆脱Jenkins部署;如果前端有自己的服务器环境;可以借助gitlab-runner实现CI自动部署并且发送结果通知消息1. 服务器安装gitlab-runner先确认服务器环境信息之后找到对...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK