Skip to content

gitlab-ci: Only run the pipeline for changes to files affecting it

E.g. documentation-only changes cannot affect the outcome of the pipeline, so don't waste resources on running it.

The thing we need to be careful about here is that the container stage jobs must always run if any later stage jobs using the corresponding docker images run. We're currently using the same .ci-run-policy template for all jobs, so this is trivially true.

Merge request reports