问题标签 [gitlab-ci-runner]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
gitlab - GitLab CI 手动启动作业(部署)
是否可以将 gitlab ci 作业标记为手动启动?
我需要它来部署应用程序,但我想决定是否要部署它
gitlab - How does gitlab decide which runner to use for a job
If there are more than one available runner for a project, how does gitlab ci decide which runner to use?
I have an omnibus gitlab 8.6.6-ee installation, with 2 runners configured. The runners are identical (docker images, config, etc) except that they are running on different computers.
If they are both idle and a job comes in that either of them could run, which one will run?
docker - Gitlab CI Runner、DigitalOcean 和 Docker Compose
我正在尝试让 Gitlab CI 运行器与 DigitalOcean 一起使用 docker-compose 测试我的应用程序。
我想docker-compose up
在 DigitalOcean 上运行测试我的应用程序。
所以它说要在 Ubuntu 14.04 上使用 Docker 创建一个新的 DigitalOcean 服务器https://about.gitlab.com/2016/04/19/how-to-set-up-gitlab-runner-on-digitalocean/
然后我需要选择一个图像在我的 .gitlab-ci.yml 文件中使用。
但我不想使用图像,我想运行 docker-compose -f ci.yml up 来开始测试。
这意味着我必须选择一个图像:例如 ubuntu 14.04,然后在该图像中安装 docker 和 docker-compose。但这有其自身的问题http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/除了 Docker 在运行 .gitlab- 时抛出错误ci.yml:
现在,如果我使用 Ubuntu 14.04 启动一个新的 DigitalOcean 服务器,然后运行相同的命令,它工作正常(可能是因为它只是 Ubuntu --> Docker,而不是 Ubuntu --> Docker --> Ubuntu --> Docker)。
问题
如何docker-compose up
在不在 Docker 中运行 Docker 的情况下使用 Digital Ocean 和 Gitlab CI 运行器运行?
gitlab - gitlab-ci:php -v bash:第 24 行:php:找不到命令
我遇到了一个随机问题。
70%的时间我收到此错误:
但奇怪的是,如果我继续运行相同的构建,它就会通过。
有任何想法吗?
ruby-on-rails - Gitlab CI:是否可以加快“捆绑安装”?
我将 gitlab.com 和 CI 与共享 docker 运行程序一起使用,该运行程序在每次提交到 master 时为我的 Ruby on Rails 项目运行测试。我注意到大约 90% 的构建时间都花在了“捆绑安装”上。是否可以在提交之间以某种方式缓存已安装的 gem 以加快“捆绑安装”?
更新:
更具体地说,下面是我的 .gitlab-ci.yml 的内容。'test' 脚本的前 3 行大约需要 90% 的时间使构建运行 4-5 分钟。
continuous-integration - Is it compulsory to set up Gitlab server and a Gitlab runner configured?
As per the Gitlab CI(version 8.0) documentations and blogs I was red I came to the conclusion that I need to setup Gitlab server and a Gitlab runner on VM/docker etc. Correct me if I am wrong
I am very new to continuous integration concept. Please anyone let me know is it compulsory to setup Runner on Virtual Machine or do we have any alternative way to use Gitlab CI without Runner. Sorry if this question is silly.
Please guide me from where would I start if anyone have the nice documentation to setup and use Gitlab CI end to end. Thanks and very much appreciated.
windows - 如何在使用 gitlab runner 和 bash 作为 shell 的 Windows 机器上访问 c:\
- 我有一个在 Windows Server 2012 机器上运行的 gitlab 运行器。
- 我已经安装了 win-bash 并将 bash 可执行文件的位置添加到系统路径中。
- 我已将 runners config.toml 文件配置为使用 bash 作为 shell
- 我有一个 python 脚本存储在我需要作为构建过程的一部分运行的机器上。此脚本存储在 windows 机器上,位于 c:\path\to\script.py
- 我的构建脚本中的第一行打印了工作目录
pwd
并返回:/home/gitlab-runner/builds/2b321e5b/0/Firmware/PSoC5LP
我的问题是:如何访问 C:\ 驱动器?
我在 Windows 机器上运行,并从任何其他终端(cmd.exe、powershell、直接运行 bash.exe)启动 bash,从我启动 bash 的任何位置进入标准 Windows 目录结构:
没有 /home/,看不到标准的 linux 目录结构。因此,我的构建脚本失败,因为它们无法通过绝对路径访问文件(我什至不知道它们的相对路径在跑步者 bash 上下文中会是什么样子)
这是我的构建脚本的相关部分:
这是跑步者的示例输出:
ubuntu-14.04 - GitLab CI:无法设置 JAVA_HOME
我正在使用 Ubuntu 14 运行 git-lab 服务器我正在尝试在 git-lab Ci 上编译构建,但由于某些原因,我一遍又一遍地遇到相同的错误:
无论我如何更改 JAVA_HOME 的路径,结果总是相同的。我在 JVM 文件夹中有 4 个文件夹:
但是无论我将路径设置到哪个目录,结果总是相同的。
这是我的.gitlab-ci.yml
文件:
此错误的原因可能是什么?
ssh - 如何通过 ssh 进入 GitLab 默认共享运行器?
我正在使用 GitLab.com 和默认共享运行器,下面是我的 .gitlab-ci.yml 文件:
在这里,我正在使用 docker 镜像“maven:3.3.9-jdk-8”。我是否有任何可能的方法,以便我可以使用 docker 映像 ssh 进入默认运行程序,并对同一映像进行任何进一步的配置。如果我想安装其他包,如 nodejs、mongodb 或任何其他包,这对我来说是必需的。
我可以通过设置自定义 Runner 来实现这一点,但是有什么方法可以通过带有 docker 图像的默认 runner 来实现。谢谢
gitlab - 更改 Gitlab CI Runner 用户
目前,当我在 GitlabCI 中开始构建时,它在 gitlab-runner 用户下运行。我想把它改成公司的内部用户。我没有找到解决该问题的 /etc/gitlab-runner/config.toml 的任何参数。
我目前的配置: