Using yamllint Python module from https://github.com/adrienverge/yamllint.
docker run --rm -it -v $(pwd):/data registry.gitlab.com/jeff_cook/yamllint:latest yamllint .
With GitLab CI you can include a pipeline file.
Make sure you have added the pre_build
stage to your pipeline.
include:
- project: jeff_cook/yamllint
ref: 0.1.2
file: /.gitlab-ci/.gitlab-ci.yml
stages:
- pre_build