Use the $BUILD_FROM Variable for multi-arch support
Might not be as trivial as changing the last build stage to the recommended multi-arch image as the golang build stage must also be adjusted to build for the correct arch (maybe extractable from the $BUILD_FROM arg or a dedicated envvar?).
Also, this would require multiple builds in Gitlab resulting in more space consumption!
Edited by Leon Schmidt