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

.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 was merged in pull request #36.
This commit is contained in:
clawbot committed 2026-10-02 06:12:05 +02:00
1 parent dd14677145
commit 7f7fe33cd6
2 files changed
+15 -2

No files matched your search

+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