Stamp the git tag or short commit in a plain docker build (closes #46) #47

Merged
clawbot merged 1 commits from issue-46-version-from-git into next 2026-10-02 08:17:36 +02:00
1 Commits
Author SHA1 Message Date
clawbot 6f0134bf5d Stamp the git tag or short commit in a plain docker build (closes #46)
check / check (push) Waiting to run
A plain `docker build .` stamped `unknown` into the page footer:
.dockerignore left out .git, and the Dockerfile built without the -X
flags. The context now carries .git without .git/config, which can hold
a credential. The build stage takes the VERSION build argument when one
is given, otherwise `git describe --tags --always`, fails the build if
.git is present and no version comes out, and stamps it together with
the full commit the footer links to. `make build` now uses
`git describe` as well, and script/docker is the current shared copy.

Model: opus-5-5
2026-10-02 04:14:50 +00:00