How to cache pnpm .agent is kvm (OD-1760)
hzgotb opened 2 years ago

如标题

  • Robin Shen commented 2 years ago

    能说清楚点吗?

  • Robin Shen changed title 2 years ago
    Previous Value Current Value
    怎么缓存 pnpm .agent是kvm
    How to cache pnpm .agent is kvm
  • hzgotb commented 2 years ago

    哦哦。我构建 node 项目,用的是 pnpm 这个包管理器。agent是允许在虚拟机上的。每次构建都会重新下载以来而不是使用缓存。我现在的缓存时参考 pnpm 官网的默认位置,就是 /root/.pnpm 。但是不起作用

  • Robin Shen commented 2 years ago

    创建一个示例项目来说明问题吧,我都不知道你怎么配置的。

  • hzgotb commented 2 years ago

    image.png

  • hzgotb commented 2 years ago

    用docker executor构建镜像

  • Robin Shen commented 2 years ago

    cache机制改了,升级到10.1.6然后按下面的教程重新配置:

    https://docs.onedev.io/tutorials/cicd/job-cache

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1760
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover