【发布时间】:2019-02-13 21:24:24
【问题描述】:
我正在尝试将我的项目的 dist 文件夹从 gitlab 部署到 heroku, gitlab ci:
image: node:8.10.0-alpine
cache:
key: "alpine"
paths:
- node_modules/
stages:
- build
- production
build:
stage: build
artifacts:
paths:
- dist/
script:
- npm install
- npm run build
tags:
- docker
only:
- master
production:
type: deploy
stage: production
image: ruby:latest
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- cd dist
- dpl --provider=heroku --app=app --api-key=api-key
only:
- master
当进程运行时,我得到:sh: 0:getcwd() 失败:没有这样的文件或目录 致命:无法读取当前工作目录:没有这样的文件或目录 部署失败,构建退出,代码 1 错误:作业失败:退出代码 1
【问题讨论】:
标签: node.js reactjs heroku gitlab pipeline