build.sh: the source repo is overridable, and the build says which tree it used
gates / gates (push) Failing after 54s

The default is unchanged — the shared DooPlex clone the release runbook names. It is overridable
because that clone is SHARED: tonight another session had 30 files of work in progress in it, and
the clean-tree gate rightly forbids building over them. The way to ship is then a clean clone at
the pushed commit, not stashing somebody else's work.

The banner now prints the repo it built from, so an image is attributable to a tree as well as to
a commit. That matters more now that a version number can only be pushed once.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y
This commit is contained in:
2026-10-15 21:05:45 +02:00
parent f9151f0875
commit 4261a38bf0
+6 -1
View File
@@ -16,7 +16,11 @@
set -euo pipefail
# --- Configuration (edit these if your paths differ) ---
REPO_DIR="/mnt/5_hdd/felhom.eu/git/felhom-controller"
# The default is the shared DooPlex clone, and the release runbook names it. It is overridable
# because that clone is shared: when another session has work in progress in it, the clean-tree gate
# rightly forbids building over them, and the way to ship is a clean clone at the pushed commit —
# not stashing somebody else's work. Set FELHOM_REPO_DIR to that clone.
REPO_DIR="${FELHOM_REPO_DIR:-/mnt/5_hdd/felhom.eu/git/felhom-controller}"
CONTROLLER_SRC="${REPO_DIR}/controller"
WEBSITE_ASSETS_DIR="/mnt/5_hdd/felhom.eu/git/felhom.eu/website/assets"
REGISTRY="gitea.dooplex.hu/admin"
@@ -61,6 +65,7 @@ info "║ felhom-controller image builder ║"
info "╚══════════════════════════════════════╝"
info "Version: ${VERSION}"
info "Commit: ${GIT_COMMIT}"
info "Repo: ${REPO_DIR}"
info "Source: ${CONTROLLER_SRC}"
info "Build dir: ${BUILD_DIR}"
info "Image: ${IMAGE}:${VERSION}"