tamland / airsonic-refix

Modern web UI for Subsonic compatible servers
GNU Affero General Public License v3.0
304 stars 48 forks source link

build/push docker images for arm #53

Closed d-rk closed 2 years ago

d-rk commented 2 years ago

Hi,

this change modifies your github actions workflow to build docker images for multiple architectures (fixes #18).

docker build is replaced by docker buildx build, which supports setting a --platform parameter to set the architecture. In your case no cross-compilation is needed, since the dist/ folder you copy into the image is just javascript and therefore platform independent. The base image nginx:alpine is already a multi-arch image, so in the end buildx will just switch out the base image with the one for the specific architecture.