fix(image): stage only the sample files in the ci image's hook smoke test #5
@@ -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; \
|
||||
|
||||
Reference in new issue
Block a user