locked:关闭锁定,默认情况下runner注册后都是锁定状态,不可以执行,需要在后台打开,这里直接注册时打开 配置文件 gitlab runner在注册后会生成对应的配置文件/srv/gitlab-runner/config/config.toml(挂载目录),容器位置在/etc/gitlab-runner/config.toml # 同时可以运行几个runner concurrent = 2 # 检查间隔,3s内检...
私有化部署的gitlab具有CI/CD的功能,可以通过gitlab执行流水线完成代码的构建、编译。 配置CI/CD 在项目下的【设置】-【CI/CD】 (1)流水线通用配置 重点关注一下CI/CD配置文件,默认为(.gitlab-ci.yml)为项目根目录的文件,路径可以自定义选择。 (2)Runner Runner 配置是去确保gitlab执行流水线主要工具。Runne...
gitlab-runner配置文件位置: /etc/gitlab-runner/config.toml Docker部署的gitlab-runner升级 需要在docker-compose.yml改版本,然后执行docker-compose up –d 配置.gitlab-ci.yml .gitlab-ci.yml文件是GitLab CI/CD流程的配置文件 详解:https://hellogitlab.com/CI/gitlab/X_gitlab_ci_.gitlab-ci.yml_de...
1. 官网下载rpm包手打进行安装 yum install postfix systemctl enable postfix systemctl start postfix rpm -i gitlab-ce-11.3.4-ce.0.el7.x86_64.rpm 修改gitlab配置文件的服务器地址和端口,配置项:external_url,配置文件路径:/etc/gitlab/gitlab.rb(可选) 修改后运行gitlab-ctl reconfigure gitlab-ctl s...
修改runner 配置文件: [root@bogon~]# cat/srv/gitlab-runner/config/config.toml concurrent=1check_interval=0shutdown_timeout=0[session_server]session_timeout=1800[[runners]]name="130-docker"url="http://10.xx.xx.120/"id=10token="euP***hqv_"token_obtained_at=2023-02-24T02:47:50Z token...
gitlab-ci tags 是runner的标签,在后面的配置文件中会用到。 enter the executor是配置runner使用的执行器,可以是shell,如果你需要执行shell脚本的话。我们这里使用的是docker,使用了一个包含Android环境的容器:jangrewe/gitlab-ci-android。 另外,需要注意,在gitlab所在服务器的/etc/gitlab-runner/config.toml配置...
这里需要改动gitlab-runner配置文件 vim /etc/gitlab-runner/config.toml # 部分配置如下 [[runners]] name = "test runner" url = "http://localhost:8080/" id = 1 token = "tgkGuCmMx_2s7yTCsrsN" token_obtained_at = 2023-05-13T09:44:44Z token_expires_at = 0001-01-01T00:00:00Z execu...
Gitlab-CI 是 GitLab Continuous Integration(Gitlab持续集成)的简称。 从Gitlab的8.0版本开始,gitlab就全面集成了Gitlab-CI,并且对所有项目默认开启。 只要在项目仓库的根目录添加.gitlab-ci.yml文件,并且配置了Runner(运行器),那么每一次合并请求(MR)或者push都会触发CI pipeline。
这次完成以后修改一下配置保存 3、到这里就注册成功了,开始编写.gitlab-ci.yml文件。 代码语言:javascript 复制 stages:#指定剧本各步骤-build-deploy-rollbackbuild:stage:buildscript:-docker build.-t harbor.xxx.com/product/test:v0.0.1tags:-"215-test"#指定服务运行的runner,tag注册是指定的名字only:-tags...