【发布时间】:2018-12-01 21:35:58
【问题描述】:
我已经做过 CI,但现在我想部署到我的服务器上。我的服务器是我做 CI 的同一台机器,但我在 docker-executor 中做 CI。所以我无法访问服务器文件夹来更新生产。 这是我的脚本:
image: node:9.11.2
cache:
paths:
- node_modules/
before_script:
- npm install
stages:
- test
- deploy
test:
stage: test
script:
- npm run test
deploy:
stage: deploy
script:
#here I want to go to /home/projectFolder and make git pull, npm i, npm start
# but I can't beause I run CI in docker-environment which hasn't acces to my server's dirictories.
【问题讨论】:
标签: node.js docker gitlab continuous-integration gitlab-ci