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
This commit is contained in:
2026-10-02 06:27:32 +00:00
committed by sneak
parent c737490a53
commit 1f64f4d6de
5 changed files with 36 additions and 6 deletions
+2
View File
@@ -6,4 +6,6 @@ jobs:
steps:
# actions/checkout v4.2.2, 2026-02-22
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
fetch-depth: 0
- run: script/cibuild