Dynamic daily multi-architecture (linux/amd64 + linux/arm64) container build system for upstream GitHub projects that ship Dockerfile definitions without publishing official pre-built images.
- Daily Upstream Commit Monitor (
scripts/resolve_matrix.py): Runs every day at06:00 UTC(or on manualworkflow_dispatch). Queries the GitHub REST API for each target intargets.yaml, compares the upstream branch SHA againststate/build-state.json, and checks whether any non-ignored files changed. - Hybrid Multi-Dockerfile Discovery: Combines explicit
images:definitions intargets.yamlwith recursive Git Tree discovery (auto_discover: true) forDockerfile,Dockerfile.*, and*.Dockerfilefiles. Automatically infers whether subdirectory Dockerfiles expect the repository root (.) or their parent folder as the build context by inspectingCOPY/ADDinstructions. - Native Parallel
amd64&arm64Builds (.github/workflows/daily-docker-builds.yml): Buildslinux/amd64onubuntu-latestandlinux/arm64onubuntu-24.04-armin parallel, pushes per-architecture images by digest, and merges them intoghcr.io/heretek-ai/<image>with:latest,:sha-<short_sha>, and:YYYY.MM.DDtags. - Per-Image State Lockfile (
state/build-state.json): Commits updated SHAs viascripts/update_state.pyonly for images whose multi-arch manifest succeeded, so any failed image automatically retries on the next run.
| Target ID | Upstream Repository | Default Image(s) | Architectures |
|---|---|---|---|
memos |
MemTensor/MemOS |
ghcr.io/heretek-ai/memos, ghcr.io/heretek-ai/memos-docker (+ auto-discovered Dockerfiles) |
linux/amd64, linux/arm64 |
Add an entry under targets: in targets.yaml:
- id: example-project
repo: Owner/ExampleRepo
branch: main
auto_discover: true
images:
- name: example-project
dockerfile: Dockerfile
context: .