Skip to content

sdesbure/docker_yamllint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YAML Lint Docker

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 image

image information version information circle ci status pyup.io status

How to use

Pull image

docker pull sdesbure/yamllint

Run container

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

In gitlab ci runner

Here's an example of a working configuration (that have a lint stage):

yaml_linting:
  stage: lint
  image: sdesbure/yamllint
  script:
    - yamllint *.y?ml

About

Yamllint into a docker (used for CI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published