shish / shimmie2

An easy-to-install community image gallery (aka booru)
http://code.shishnet.org/shimmie2/
GNU General Public License v2.0
411 stars 115 forks source link

[docker] Build image for amd64 and arm64 #1251

Closed BadMannersXYZ closed 2 months ago

BadMannersXYZ commented 2 months ago

This modifies the Github Workflow steps by using Docker's official images for building to multiple architectures. I tried to keep parity with the current format, but I also added some new (optional) parameters for envvars that allow the user to choose a different image name and registry.

In order to test this, I created a non-fork repo (by default, Github doesn't allow forks to share secrets to workflows). This has built an image that I've tested on my Raspberry Pi, and it seems to work perfectly, although I haven't tested the corresponding amd64 image yet.

shish commented 2 months ago

The code looks good, let's merge and see if it works in practice :eyes: