Derive the image version from git; send .git without its config (closes #69, closes #71) #70

Merged
clawbot merged 1 commits from issue-69-version-from-git into next 2026-10-02 04:38:11 +02:00
1 Commits
Author SHA1 Message Date
clawbot 3926fff07e Derive the image version from git; send .git without its config (closes #69, closes #71)
check / check (push) Waiting to run
The canonical documents told every repo to exclude .git from the build
context, default ARG VERSION to dev and never run git describe in a
build stage, so an image built from a clone with no build argument
reported dev. .dockerignore now sends .git but keeps out .git/config,
which can hold a credential. The Dockerfile example installs git, takes
the VERSION build argument when one is given and otherwise
git describe --tags --always, and fails when .git exists but the version
is empty, dev or unknown. The policy and both checklists state the rule
in the same words, including that a plain docker build . with no build
arguments must succeed.

Model: opus-5-5
2026-10-02 02:24:08 +00:00