feat(arm): adds support building multiarch prowler containers #8773
+276
−104
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR implements multi-architecture container builds for Prowler's containerized components using GitHub Actions matrix strategy and Docker Buildx, supporting both ARM64 and AMD64 architectures.
Note: This is a draft PR. We can selectively release this feature (starting with API containers only for example) and then extend it progressively to other components.
Changes Made
linux/amd64
(ubuntu-latest) andlinux/arm64
(ubuntu-24.04-arm) using different runners for each arch, this prevents emulation when building the containersdocker buildx imagetools
short_sha
and other common variables between jobs, improving workflow reliability and maintainability.Performance Impact
Trade-offs
image:version-amd64
,image:version-arm64
) that remain after manifest creation. These can be cleaned up using registry lifecycle policies if needed.Cost Impact
Future Improvements
Steps to review
Checklist
API
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.