More CICD fixes again again again again again again again again again again again again again again again again again again
All checks were successful
CICD Start / Sanity and Base Decision (pull_request) Successful in 1m8s

Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
This commit is contained in:
copilotcoder
2026-06-07 08:14:14 -04:00
parent 509b402edf
commit ab32fcc400

View File

@@ -178,15 +178,17 @@ RUN echo "=== Installing Backend Package in Development Mode ===" && \
WORKDIR /workspace
RUN echo "=== Installing Pre-commit Hook Environments ===" && \
if [ -f ".pre-commit-config.yaml" ]; then \
# pre-commit expects a git repository; create a temporary one for CI image prewarming.
git init /workspace >/dev/null 2>&1 || true && \
cd backend && \
# pre-commit requires a git repo at runtime; keep it in the final image.
git config --global user.email "ci@cicd" && \
git config --global user.name "CICD" && \
git init /workspace && \
git -C /workspace add -A && \
cd /workspace/backend && \
if uv run pre-commit install-hooks; then \
echo "✓ Pre-commit hook environments installed successfully"; \
else \
echo "⚠ pre-commit hook prewarming failed; continuing"; \
fi && \
rm -rf /workspace/.git; \
fi; \
else \
echo "No .pre-commit-config.yaml found, skipping hook installation"; \
fi