Projects built from ci-templates can build a multi-architecture image
Problem to solve
Today, analyzer images provided by sectionsec are all based on the amd64
/x86_64
architecture, but users may want to use other architectures such as arm64
.
Proposal
Make it easy for projects that use ci-templates to create a multi-architecture (arm64, amd64) Docker image. This change will produce an image that can run natively on both architectures. Emulation is used during the arm64 build to produce a native arm64 image in the output.
- For projects that use ci-templates,
- Specifying
BUILD_MULTI_ARCHITECTURE_IMAGE: "true"
should configure the project pipeline to build a multi-architecture image. - Don't nothing to the project should produce a single-architecture
amd64
image as usual.
- Specifying
- Investigate which projects should build multi-architecture images, and enable if easy to do so.
Out of scope
Projects that do not use ci-templates will not be affected (e.g. API security, browserker).
Edited by Cameron Swords