Open the Optional Configuration dropdown at the bottom of the step.
Add two variables under Environment Variables.
Enter PLUGIN_PLATFORM for your first Key.
Then, enter your architectures as a comma separated list as your Value. For example, linux/amd64,linux/arm64.
Enter PLUGIN_BUILDER_DRIVER for your second variable's Key.
Then, enter docker-container for your second variable's Value.
Deprecated Methods
Deprecated method of building multi-arch images on Kubernetes infrastructure
The following method for building multi-arch images is not recommended.
To build multi-architecture images in a CI pipeline, use a separate stage to build and push each architecture.
For example, the following pipeline has two stages. The two stages have similar components, but they differ according to the architecture of the image that the stage builds. Each stage has:
A variation of a Kubernetes cluster build infrastructure. Notice that each stage uses a different Kubernetes cluster connector (infrastructure.spec.connectorRef) and other settings due to the different architecture requirements.
A Build and Push step that builds and uploads the image. If the images are uploaded to the same repository, use tags to differentiate them, such as 1.0-linux-amd64 and 1.0-linux-arm64.