Stamp the tag or short commit in a plain docker build (closes #211) #212

Merged
clawbot merged 1 commits from issue-211-docker-build-version into next 2026-10-02 10:04:15 +02:00
1 Commits
Author SHA1 Message Date
clawbot ca07a78990 Stamp the tag or short commit in a plain docker build (closes #211)
check / check (pull_request) Waiting to run
A plain `docker build .` stamped `dev`: `.dockerignore` left out `.git`
and the Dockerfile defaulted VERSION to `dev`. `.dockerignore` now
sends `.git` without `.git/config`. Given no build arguments, the
builder stamps `git describe --tags --always` and the commit and date
from git, and fails if `.git` is present but yields no version. The
empty CHECK_EPOCH refusal is gone so the plain build succeeds.
`script/version` now prints `git describe --tags --always --dirty`, so
make, the scripts and a plain build agree. `vaultik version` treats
the short commit, tag-N-gHASH forms and any version ending in `-dirty`
as development builds, so they keep the development-build notice.

Model: opus-5-5
2026-10-02 07:22:20 +00:00