Skip to content

alastairmontgomery1-nhs/yamllint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-lint

A Docker image for yamllint

This repository provides an automated build for a lean yamllint Docker image.

Usage

To lint the files one.yaml and two.yaml in your current directory:

From Docker Hub

docker run --rm -ti -v $(pwd):/workdir alastairhm/yamllint ./one.yaml ./two.yaml

From GitHub Packages

docker run --rm -ti -v $(pwd):/workdir ghcr.io/alastairhm/yamllint ./one.yaml ./two.yaml

Setup an alias

alias yl 'docker run --rm -ti -v "$PWD:/workdir" ghcr.io/alastairhm/yamllint'
          _    _ __  __ 
    /\   | |  | |  \/  | Email   : [email protected]
   /  \  | |__| | \  / | Web     : https://blog.0x32.co.uk/
  / /\ \ |  __  | |\/| | Twitter : @alastair_hm
 / ____ \| |  | | |  | |
/_/    \_\_|  |_|_|  |_| (c) 2021

About

Yaml Lint Docker image based on Alpine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%