首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gitlab-runner权限

Gitlab-runner权限
EN

Stack Overflow用户
提问于 2017-11-06 22:42:04
回答 1查看 5.1K关注 0票数 3

尝试gitlab并尝试构建一个简单的create-react-app项目。然而,我对gitlab-runner有一些问题。我正在使用来自亚马逊市场的gitlab的AMI在一个EC2实例上运行gitlab。

yml是非常基础的。

代码语言:javascript
复制
build-site:
  image: node:9
  stage: build
  script:
    - npm install
    - npm run build
  artifacts:
    expire_in: 1 week
    paths:
      - build

但是,我在gitlab web UI中得到的输出是

代码语言:javascript
复制
Running with gitlab-runner 10.1.0 (c1ecf97f)
  on runner-1 (9fc6bc1c)
Using Shell executor...
Running on ip-10-214-239-156...
Fetching changes...
warning: failed to remove builds/0/project-0.tmp/git-template/config
warning: failed to remove builds/0/project-0/.istanbul.yml
warning: failed to remove builds/0/project-0/yarn.lock
warning: failed to remove builds/0/project-0/src/Root.js
warning: failed to remove builds/0/project-0/src/utils/common.js

以及当ssh进入ec2机器时运行sudo gitlab-runner --debug exec shell build-site时得到的输出

代码语言:javascript
复制
ERROR: Job failed: exit status 1
FATAL: exit status 1 

EN

回答 1

Stack Overflow用户

发布于 2017-11-08 01:41:07

had必须将用户gitlab-runner添加到docker组

usermod -aG docker gitlab-runner

看起来已经成功了

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47139422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档