Stamp the git tag or short commit in a plain docker build (closes #35)
check / check (push) Successful in 53s

.dockerignore left out .git, so make build inside the image fell back to
"dev". The build context now carries .git, without its config, which can
hold a credential in the remote URL. The build stage takes the VERSION
build argument when one is given, otherwise git describe --tags --always,
and fails if the context carries .git and no version comes out.

Model: opus-5-5
This commit is contained in:
2026-10-02 03:04:50 +00:00
parent dd14677145
commit 6163f265e1
2 changed files with 15 additions and 2 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
.git
# .git is sent so the build can stamp the version, without its config.
.git/config
.gitea
/keyfunc