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:
If you prefer, you can also run the distroless image directly:
GitHub Actions¶
prek can be used in GitHub Actions via the j178/prek-action repository.
Example workflow:
name: Prek checks
on: [push, pull_request]
jobs:
prek:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: j178/prek-action@v1
This action installs prek and runs prek run --all-files on your repository.
prek is also available via taiki-e/install-action for installing various tools.