Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mhutter/container-yamllint

yamllint in a container image
https://github.com/mhutter/container-yamllint

container

Last synced: about 1 month ago
JSON representation

yamllint in a container image

Awesome Lists containing this project

README

        

# yamllint Container Image

Container image containing the latest [yamllint](https://yamllint.readthedocs.io/en/latest/) release

## Usage

```sh
docker run --rm -v "$(pwd):/yaml" ghcr.io/mhutter/yamllint yamllint .
```

### In GitLab CI runner

```yaml
stages:
- lint
# ...

yaml_syntax:
stage: lint
image: ghcr.io/mhutter/yamllint
script:
# remove single-line ERB code upfront to make templates lintable
- find . -type f -name '*.y*ml.erb' -exec sed -i '/^<%.*%>$/d' {} \;
- yamllint $(find . -type f -name '*.y*ml.erb')
- yamllint $(find . -type f -name '*.y*ml')
#...
```

## Release

After merging a yamllint update, create a new tag and push it:

./tag-release.sh
git push --tags

## License

MIT (see `LICENSE`)

---

> [Manuel Hutter](https://mhu.dev/) -
> GitHub [@mhutter](https://github.com/mhutter) -