ci: publish multi-arch container image to GHCR

Build linux/amd64 + linux/arm64 from the existing Dockerfile on every push
to main, on git tags v*.*.*, and on manual workflow_dispatch. Pushes to
ghcr.io/metalfinger/refboard with tags :latest (default branch), :sha-XXX
(every push), and semver tags on releases. Uses GHA cache for speed.

Tightens .dockerignore so multi-arch builds don't ship docs/, examples/,
scripts/, .github/, or .docker-data into the image context.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Hiren Kangad
2026-05-21 09:50:59 +05:30
co-authored by Claude Opus 4.7
parent 9a02edd9dc
commit 9328713ae5
2 changed files with 61 additions and 0 deletions
+7
View File
@@ -1,3 +1,10 @@
**/node_modules
**/.git
**/.env
.github
.docker-data
docs
examples
scripts
*.md
!README.md