1 Commits
Author SHA1 Message Date
clawbot 1f64f4d6de Stamp the git tag or short commit in a plain docker build (closes #67)
check / check (push) Successful in 1m7s
.dockerignore now sends .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 of that .git, and
fails if the context carries .git and still yields no version. A plain
docker build . used to stamp dev. The CI checkout fetches full history
so CI sees the tag and stamps the same value as make build.

Model: opus-5-5
2026-10-02 06:27:32 +00:00
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -6,4 +6,6 @@ jobs:
steps: steps:
# actions/checkout v4.2.2, 2026-02-22 # actions/checkout v4.2.2, 2026-02-22
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- run: script/cibuild - run: script/cibuild
+3 -1
View File
@@ -36,7 +36,9 @@
stage takes the `VERSION` build argument when one is given, stage takes the `VERSION` build argument when one is given,
otherwise `git describe --tags --always` of that `.git`. The build otherwise `git describe --tags --always` of that `.git`. The build
fails if the context carries `.git` and the version still comes out fails if the context carries `.git` and the version still comes out
empty, `dev` or `unknown`. empty, `dev` or `unknown`. The CI checkout step fetches the full
history (`fetch-depth: 0`) so CI sees the tag and stamps the same
value as `make build`.
- replace the 1 KiB end-window sampling with the head/tail plus - replace the 1 KiB end-window sampling with the head/tail plus
content-hash ladder (2026-09-22, branch `next`, closes content-hash ladder (2026-09-22, branch `next`, closes