fix(image): stage only the sample files in the ci image's hook smoke test #5

Merged
Defame1297 merged 1 commits from fix/ci-image-smoke-test into main 2026-10-25 11:26:49 +00:00
+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; \