Skip to content

Streamline multi-platform building

Rémy Coutable requested to merge use-TARGETPLATFORM-instead-of-ARCH into master

What does this MR do and why?

According to https://docs.docker.com/build/guide/multi-platform/#platform-build-arguments, the TARGETARCH variable is automatically available for use in your Dockerfile when performing cross-platform compilation with the --platform flag.

It seems we can always use buildx with cross-compilation now, so this MR simplifies the code by using TARGETARCH.

Checklist

Edited by Rémy Coutable

Merge request reports