Skip to content

ci(docker): use cargo chef and cache to github#1631

Merged
Mirko-von-Leipzig merged 9 commits intonextfrom
mirko/docker-cache
Feb 3, 2026
Merged

ci(docker): use cargo chef and cache to github#1631
Mirko-von-Leipzig merged 9 commits intonextfrom
mirko/docker-cache

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig commented Feb 2, 2026

This PR improves our CI docker build times by:

  • using cargo chef to cache our dependencies as a separate image layer
  • replacing S3 bucket with github cache

Similar to our other github caches, the cache is only updated on push into next.

The cache usage is around 1 GB which is acceptable I think. I will separately also make changes to how we cache cargo stuff to reduce the cache strain in general.

I've tested this on a fork repo (with the free runner), and a cache reduced compile time from 25minutes to 6minutes.

Closes #999 and closes #1374

@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Feb 2, 2026
@Mirko-von-Leipzig Mirko-von-Leipzig mentioned this pull request Feb 2, 2026
@Mirko-von-Leipzig Mirko-von-Leipzig marked this pull request as ready for review February 2, 2026 14:10
Copy link
Copy Markdown
Contributor

@drahnr drahnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One questions, otherwise LGTM

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 2965984 into next Feb 3, 2026
7 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/docker-cache branch February 3, 2026 12:22
sergerad added a commit that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: docker build failing Improver docker caching

2 participants