The image is now made for amd64 and for arm64, and each tag (X.Y.Z, X.Y,
latest) points at both, so a Raspberry Pi or an ARM NAS pulls the right one.
- Dockerfile: the web and Go stages run on the builder and the Go program is
cross-compiled (GOARCH from SONDA_ARCH or TARGETARCH); what the image needs
besides the program (time zones, the user, the folders) is made in a stage
of the builder, so the last stage runs no command and needs no emulation.
- release workflow: the runner has no Docker and cannot run ARM, and kaniko
takes the base of every stage for one platform, so the arm64 image starts
from the arm64 Alpine by digest (found at each release), kaniko builds one
image per architecture, and crane sets the architecture of each and joins
them under the tags.