Skip to content

Add multi-platform build support#107

Merged
pditommaso merged 3 commits into
masterfrom
add-multi-platform-support
Mar 24, 2026
Merged

Add multi-platform build support#107
pditommaso merged 3 commits into
masterfrom
add-multi-platform-support

Conversation

@pditommaso
Copy link
Copy Markdown
Contributor

Summary

  • Allow specifying multiple platforms via --platform (e.g., linux/amd64,linux/arm64)
  • Add validation: multi-platform is incompatible with Singularity format, mirror mode, and image-only builds
  • Add isMultiPlatform() helper method and corresponding tests

Test plan

  • Verify --platform linux/amd64,linux/arm64 -f Dockerfile is accepted
  • Verify multi-platform + --singularity is rejected
  • Verify multi-platform + --mirror is rejected
  • Verify multi-platform with only --image (no containerfile/packages) is rejected
  • Run ./gradlew test to confirm all tests pass

🤖 Generated with Claude Code

Allow specifying multiple platforms (e.g., linux/amd64,linux/arm64) via
the --platform option. Adds validation to reject multi-platform with
Singularity format, mirror mode, and image-only builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
pditommaso and others added 2 commits March 24, 2026 20:57
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pditommaso pditommaso merged commit 4f82a24 into master Mar 24, 2026
16 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.

1 participant