FR
frxncodominguez/docker-lagoonlint
Dockerized lagoon linter, a lagoon.yml parser and validator
docker-lagoonlint
Dockerized lagoonlinter with various versions, easy to use and easy to integrate with CI.
Table of Contents
Usage
Command line
Use latest version
docker run --rm -v $PATH_TO_LAGOONYAML:/app frxncodominguez/lagoonlinter lagoonlinter
# Please replace "$PATH_TO_LAGOONYAML" with your custom path where is the lagoon.yml file.Use specific version
Just like above, but you can specify version of lagoonlinter, for example:
docker run --rm -v $PATH_TO_LAGOONYAML:/app frxncodominguez/lagoonlinter:0.7.0 lagoonlinter
# Please replace "0.7.0" with the version number you want.
# Don't forget to replace "$PATH_TO_LAGOONYAML".Continuous Integration (CI)
Travis CI
Enable Docker service in your .travis.yml:
services:
- dockerAnd use the same command in the scripts part as the command line mentions, for example:
services:
- docker
scripts:
- docker run --rm -v $TRAVIS_BUILD_DIR:/app frxncodominguez/lagoonlinter:0.7.0 lagoonlinterThis will lint the Travis CI config file .travis.yml
GitLab CI
Add this block to your .gitlab-ci.yml:
yamllint:
stage: lint
variables:
lagoonlinter_version: "0.7.0"
image: frxncodominguez/lagoonlinter:$lagoonlinter_version
only:
changes:
- "**/.lagoon.yml"
script:
- find . -name ".lagoon.yml" | xargs -n 1 lagoonlinterReplace "0.7.0" with the version you want to use, you can also use "latest" for the very new version.
Build
Build command, you need to specify a valid lagoon-linter version argument to LAGOONLINTER_VERSION:
docker build --build-arg LAGOONLINTER_VERSION="0.7.0" -t docker-lagoonlinter .
# Replace "docker-lagoonlinter" with the preferred image nameYou can find a valid version in the release history on Github.
On this page
Contributors
Created August 5, 2022
Updated August 5, 2022