Stamp the tag or short commit in a plain docker build (closes #112) #113

Merged
clawbot merged 1 commits from issue-112-docker-version into next 2026-10-02 08:53:35 +02:00
1 Commits
Author SHA1 Message Date
clawbot 1a76e0c02c Stamp the tag or short commit in a plain docker build (closes #112)
check / check (push) Waiting to run
.dockerignore now sends .git but not .git/config, which can hold a
credential and which git describe does not need. The build stage stamps
main.Gitrev from the VERSION build argument when one is given, otherwise
from git describe --tags --always, and fails if .git is present and no
version comes out. git there trusts /src whoever owns it, since a
context sent as a tar archive keeps its files' owners. script/docker is
replaced by the canonical copy, which passes VERSION; bin/gitrev.sh uses
--tags too, so every entrypoint stamps the same value for a clean
commit.

Model: opus-5-5
2026-10-02 05:15:53 +00:00