1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Files
prek/docs/integrations.md
T
2026-01-13 22:57:14 +08:00

33 lines
728 B
Markdown

# Integrations
This page documents common ways to integrate prek into CI and container workflows.
## Docker
prek is published as a distroless container image at:
- `ghcr.io/j178/prek`
The image is based on `scratch` (no shell, no package manager). It contains the prek binary at `/prek`.
A common pattern is to copy the binary into your own image:
```dockerfile
FROM debian:bookworm-slim
COPY --from=ghcr.io/j178/prek:v0.2.28 /prek /usr/local/bin/prek
```
If you prefer, you can also run the distroless image directly:
```bash
docker run --rm ghcr.io/j178/prek:v0.2.28 --version
```
## GitHub Actions
{%
include-markdown "../README.md"
start="<!-- github-actions:start -->"
end="<!-- github-actions:end -->"
%}