YAML lint - https://yamllint.readthedocs.io/en/latest/
Latest yamllint release in pip embedded into this docker.
Used to perform yaml linting into gitlab ci runner
docker pull sdesbure/yamllint
Per default, the docker will give you the version number of yamllint.
If you want to do linting you'll have to run a specific command:
docker run --rm -v <path for yaml to lint>:/yaml sdesbure/yamllint yamllint youryamlfiles.yaml
Here's an example of a working configuration (that have a lint
stage):
yaml_linting:
stage: lint
image: sdesbure/yamllint
script:
- yamllint *.y?ml