Tag: gitlab ci

没有在gitlab ci中find纱线命令

我想configuration我的gitlab-ci使用yarn install而不是npm install 我目前的gitlab-ci.yml如下所示: image: node:6.9.4 cache: paths: – node_modules/ – .yarn before_script: – apt-get update -qq && apt-get install -qy libelf1 stages: – test test_core: stage: test script: – yarn config set cache-folder .yarn – yarn install – npm run build – npm run test tags: – 2gb 但是编译失败,错误: /bin/bash: line 48: yarn: command […]

带有node.js的GitLab CI

我没有使用GitLab CI的经验。 所以我select使用node.js( https://about.gitlab.com/gitlab-ci/#gitlab-runner )并将其安装在本地机器上。 安装成功完成后,我已经运行了gcr 。 比我inputGitLabCI-URL和我的GitLab CI注册令牌。 在此之后,我得到了十几次这个消息: gcr info [client] checking for builds… gcr http 404 https://ci.gitlab.com/api/v1/builds/register.json gcr info [client] checking for builds… gcr http 404 https://ci.gitlab.com/api/v1/builds/register.json 如果我在我的浏览器中input上面的URL,控制台会给出这个消息: 加载资源失败:服务器响应状态为405(方法不允许) 任何人都可以帮助我获得与GitLab CI和node.js连接到第一步?

使用Gitlab CI将每个构build部署到服务器

我已经为其configuration了一个项目和一个Gitlab运行器,build立了自己的Gitlab服务器。 我是新来的持续集成服务器,因此不知道如何完成以下。 每次我承诺我的项目主分支我想部署到另一台服务器的存储库,并在那里运行两个shell命令( npm install和forever restartall ) 我将如何做到这一点? 我也需要在项目部署的机器上使用跑步者吗?