Sign inSign up

sdesbure/yamllint

By sdesbure

•Updated over 5 years ago

Yamllint into a docker (used for CI)

Image
4

10M+

sdesbure/yamllint repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

20.5 MB

Last updated

over 5 years ago

docker pull sdesbure/yamllint