Stamp the tag or short commit in a plain docker build (closes #21) #22

Merged
clawbot merged 1 commits from issue-21-version-from-git into next 2026-10-02 08:14:00 +02:00
1 Commits
Author SHA1 Message Date
clawbot 1b7a939c11 Stamp the tag or short commit in a plain docker build (closes #21)
check / check (push) Waiting to run
A plain `docker build .` of a clone stamped `dev`: `.dockerignore` left
out `.git` and the build stage declared `ARG VERSION=dev`. `.git` now
reaches the build context without `.git/config`, which can hold a
credential, and the build stage takes the VERSION build argument when
given, otherwise `git describe --tags --always`. A context that carries
`.git` but yields no version fails the build.

`script/docker` is replaced with the current canonical copy, which
passes the version it derives on the host.

Model: opus-5-5
2026-10-02 04:24:43 +00:00