尝试gitlab并尝试构建一个简单的create-react-app项目。然而,我对gitlab-runner有一些问题。我正在使用来自亚马逊市场的gitlab的AMI在一个EC2实例上运行gitlab。
yml是非常基础的。
build-site:
image: node:9
stage: build
script:
- npm install
- npm run build
artifacts:
expire_in: 1 week
paths:
- build
但是,我在gitlab web UI中得到的输出是
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时得到的输出
ERROR: Job failed: exit status 1
FATAL: exit status 1
发布于 2017-11-08 01:41:07
had必须将用户gitlab-runner添加到docker组
usermod -aG docker gitlab-runner
看起来已经成功了
https://stackoverflow.com/questions/47139422
复制相似问题