Skip to content

speed up PR image builds#2553

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:speed-up-pr-image-builds
Apr 27, 2026
Merged

speed up PR image builds#2553
dgageot merged 1 commit intodocker:mainfrom
dgageot:speed-up-pr-image-builds

Conversation

@dgageot
Copy link
Copy Markdown
Member

@dgageot dgageot commented Apr 27, 2026

Summary

  • keep PR image validation multi-arch for linux/amd64 and linux/arm64
  • skip provenance generation for PR-only image builds
  • export a smaller BuildKit cache for PR builds
  • split the Dockerfile Linux image builder from the cross-platform binary builder so Linux image builds avoid the osxcross SDK path

Expected outcome

PR image builds should spend less time on metadata/cache export and avoid unnecessary osxcross work, while main/tag image publishing keeps full multi-arch SBOM and max provenance behavior.

Validation

  • docker buildx build --check .
  • docker buildx build --platform linux/amd64 --build-arg GIT_TAG=pr --build-arg GIT_COMMIT=dev --progress=plain .
  • workflow YAML parse

@dgageot dgageot requested a review from a team as a code owner April 27, 2026 16:40
@dgageot dgageot merged commit c80aae2 into docker:main Apr 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants