尝试通过gitlabRunner ci将最简单的nodejs应用程序部署到服务器
.gitlab.yml
image: node:latest
stages:
- production
production:
type: deploy
stage: production
script:
- npm install
only:
- master
此后,我在gitlab上完成了一项成功的工作,但是我找不到该构建的输出在哪里。
我的gitlabRunner服务正在运行,并且具有默认配置
从gitlab登录
Running with gitlab-runner 11.3.0-rc1 (861c565e)
on docker-auto-scale fa6cab46
Using Docker executor with image node:latest ...
Pulling docker image node:latest ...
Using docker image sha256:8672b25e842c4c36f9f75d7edf48844ad32af57cf40596f5f236ed6462f073ba for node:latest ...
Running on runner-fa6cab46-project-8443773-concurrent-0 via runner-fa6cab46-srm-1537687065-f81a688e...
Cloning repository...
Cloning into '/builds/psh/dance'...
Checking out bd13ee6b as master...
Skipping Git submodules setup
$ npm install
> nodemon@1.18.4 postinstall /builds/psh/dance/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN pshx@1.0.0 No description
npm WARN pshx@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 312 packages from 192 contributors and audited 2442 packages in 9.404s
found 0 vulnerabilities
Job succeeded
不确定,但克隆路径为'/ builds / psh / dance'...
我认为应该是'/ home / gitlab-runner / builds / 0 // ...等等
怎么了?