|
|
|
|
|
by lsorber
2418 days ago
|
|
> Any project with CI should recreate the environment a lot. That's a very inefficient way to run your CI, with conda and pip alike. Instead, you could build your environment once in a Docker image and use that as your build image. Saves a lot of time on your builds, guarantees reproducibility, and will work even when package servers are unavailable. |
|
We build images based on their commit hash, caching off the last commit hash. That works but has issues with merges and the first commit to a branch.
We also do it based on the branch name, but Docker has issues around specifying multiple cache from arguments in the CLI. That causes unnecessary invalidations on branches.
That all leads to more rebuilds than I would like.