Skip to content

ci: switch docker builds to warp#2128

Merged
Mirko-von-Leipzig merged 13 commits into
nextfrom
mirko/ci/docker
May 25, 2026
Merged

ci: switch docker builds to warp#2128
Mirko-von-Leipzig merged 13 commits into
nextfrom
mirko/ci/docker

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig commented May 25, 2026

Title.

This should speed up the slowest part of our CI.

Note:

  • I've already created env.WARPBUILD_DOCKER_BUILDER_PROFILE in repo settings
  • warp docker builds automatically cache layers (source)
  • build and publish were using arm64 and amd64 respectively, I've switched to amd64 for both since that matches our builder

@Mirko-von-Leipzig Mirko-von-Leipzig added no changelog This PR does not require an entry in the `CHANGELOG.md` file CI CI and devops labels May 25, 2026
Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

The Docker build changes look good to me, but please remove the unrelated changes.

Comment thread bin/node/src/main.rs
Comment thread crates/store/src/lib.rs
Comment thread Cargo.toml
Comment thread Dockerfile
Comment on lines +34 to +36
RUN --mount=type=cache,sharing=locked,target=/usr/local/cargo/registry \
--mount=type=cache,sharing=locked,target=/usr/local/cargo/git/db \
--mount=type=cache,sharing=locked,target=/app/target \
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'm hoping this improves the minor dependency change caching..

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This does mean each of our three builds blocks the other in the caching layer, but since its the same build (largely), I think this is fine?

Comment on lines -79 to -80
cache-from: type=s3,region=${{ secrets.AWS_REGION }},bucket=${{ secrets.AWS_CACHE_BUCKET }},name=miden-${{ matrix.component }}
cache-to: type=s3,region=${{ secrets.AWS_REGION }},bucket=${{ secrets.AWS_CACHE_BUCKET }},name=miden-${{ matrix.component }},mode=max
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I removed this because warp has its own cache

Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

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

LGTM!

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit ebb3322 into next May 25, 2026
21 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/ci/docker branch May 25, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI and devops 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.

2 participants