diff --git a/images/ci/Dockerfile b/images/ci/Dockerfile index 480da20..6b178b1 100644 --- a/images/ci/Dockerfile +++ b/images/ci/Dockerfile @@ -82,7 +82,7 @@ RUN python3 -m venv /opt/uv-venv \ # downloads into /.go, about 170 MB per environment, which alone pushed the # /opt/pre-commit layer past Cloudflare's 100 MB limit (413 on the first push). At run # time only the built binaries in /bin run, so the toolchains and the Go build -# cache are deleted. The three hooks run on a staged sample before and after the +# cache are deleted. The hooks below run on a staged sample before and after the # deletion: a cache that is incomplete (a missing environment would be rebuilt, which # needs the network) or no longer works fails the image build, not the jobs. RUN set -eu; \ @@ -93,10 +93,12 @@ RUN set -eu; \ /opt/venv/bin/pre-commit install-hooks; \ mkdir -p .gitea/workflows; \ printf -- '---\nkey: value\n' > ok.yaml; \ + printf -- 'print("ok")\n' > ok.py; \ + printf -- '#!/bin/sh\necho ok\n' > ok.sh; \ printf -- '---\nself-hosted-runner:\n labels:\n - kamino-docker\n' > .gitea/actionlint.yaml; \ printf -- '---\n"on": push\njobs:\n t:\n runs-on: kamino-docker\n steps:\n - run: echo ok\n' > .gitea/workflows/t.yml; \ - 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; }; \ + git add ok.yaml ok.py ok.sh .gitea/actionlint.yaml .gitea/workflows/t.yml; \ + smoke() { for h in yamllint gitleaks actionlint ruff-check ruff-format shellcheck; do /opt/venv/bin/pre-commit run "$h" --all-files; done; }; \ smoke; \ rm -rf /opt/pre-commit/repo*/golangenv-*/.go /root/.cache/go-build; \ smoke; \