fix(image): stage only the sample files in the ci image's hook smoke test
Build / build (pull_request) Successful in 50s
Lint / lint (pull_request) Successful in 1m23s

`git add -A` also staged the copied .pre-commit-config.yaml, so the yamllint
smoke run linted it with the default rules (six lines over 80 characters)
and, under set -eu, aborted the build before gitleaks and actionlint ran.
pre-commit does not need its own config to be tracked.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-10-25 11:24:46 +00:00
1 parent 03d2c1dc91
commit 9be17d6655
1 file changed
+1 -1
+1 -1
View File
@@ -84,7 +84,7 @@ RUN set -eu; \
printf -- '---\nkey: value\n' > ok.yaml; \
printf -- 'self-hosted-runner:\n labels:\n - kamino-docker\n' > .gitea/actionlint.yaml; \
printf -- 'on: push\njobs:\n t:\n runs-on: kamino-docker\n steps:\n - run: echo ok\n' > .gitea/workflows/t.yml; \
git add -A; \
git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml; \
smoke() { for h in yamllint gitleaks actionlint; do /opt/venv/bin/pre-commit run "$h" --all-files; done; }; \
smoke; \
rm -rf /opt/pre-commit/repo*/golangenv-*/.go /root/.cache/go-build; \