From 4261a38bf0721d5d9238c30abf0e78a47caa9293 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 15 Oct 2026 21:05:45 +0200 Subject: [PATCH] build.sh: the source repo is overridable, and the build says which tree it used MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Claude-Session: https://claude.ai/code/session_0117kRTSgs3rJWUFGxyoWN6Y --- controller/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/controller/build.sh b/controller/build.sh index 7ce67cb..d3a78c1 100755 --- a/controller/build.sh +++ b/controller/build.sh @@ -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}"