admin管理员组文章数量:1352277
Summary
Hi everyone,
I'm using Turborepo in a monorepo and exploring whether it's possible to reuse the build cache generated in CI during the CD (deployment) stage.
In my setup using GitHub Actions,
- CI runs when a pull request is opened against the
main
branch. - CD runs when that pull request is merged into
main
.
Since both workflows build from the same commit and same environment, I expected the remote cache uploaded in CI to be reused in CD.
I've tested this, and it seems to work for some packages — for example, a UI package built with plain TypeScript correctly hits the remote cache in CD.
However, Next.js packages consistently miss the cache, even though nothing changes between the two builds.
❓ Question
Has anyone successfully reused CI-generated remote cache in CD with Turborepo?
Would love to hear about setups where this works reliably — especially with Next.js apps.
Thanks!
Example
CI
CD
Additional information
本文标签: githubCan CI and CD workflows share remote cache in TurborepoStack Overflow
版权声明:本文标题:github - Can CI and CD workflows share remote cache in Turborepo? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743911813a2560538.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论