[feat](build): add versioned Docker image build script and version injection

- Introduced `tools/build_server_image.sh` for building versioned server images with support for multi-arch builds.
- Added `VERSION` injection via `-ldflags` in Dockerfile and Go binaries for both server and client.
- Updated workflows and Makefile to ensure consistent version tagging during builds.
This commit is contained in:
dalbodeule
2025-12-09 18:41:00 +09:00
parent 3402616c3e
commit 1336c540d0
6 changed files with 63 additions and 3 deletions

View File

@@ -56,4 +56,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
build-args: |
VERSION=${{ github.sha }}