Docker build multi-arch images

Hello,

We have Teamcity running on-premise with a linux ubuntu 22.04 and ARM cpu. Docker will build it's image based on the cpu of the machine it's running on so it builds an ARM64 image. Some of our other machines are intel's (so AMD64) and you can't run a ARM64 images on a AMD64 machine. 

Docker provide's certain ways to build multi-architecture using the following command:

DOCKER_BUILDKIT=1 docker build --platform=linux/amd64 . -t "name/image-name:tag"

I've tried several set-ups to archive this in the teamcity build configurations without any succes.

Does anyone know's how to configure teamcity to build a specific architecture? 

Thanks in advance!
Kind regards, 
R

0

Please sign in to leave a comment.