This repository provides an automated build for a lean yamllint Docker image.
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