如何从容器内的缓存中复制文件夹?

时间:2018-08-08 00:01:03

标签: continuous-integration yaml gitlab gitlab-ci gitlab-ci-runner

我在.yml中有此配置

compile:public:
 stage: compile
 dependencies:
  - build:modules
 script:
  - npm run build
 cache:
  key: public
  paths:
    - public/

staging:image:
 stage: staging
 image: nginx
  cache:
   key: public
   paths:
    - public/
 script:
   - cp public/ /usr/share/nginx/html

但是显示此错误

  

cp:无法设置为“ public /”:没有此类文件或目录

我该怎么办?

0 个答案:

没有答案