Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mhutter/container-yamllint
- Owner: mhutter
- License: mit
- Created: 2019-06-12T12:49:46.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-27T09:10:48.000Z (7 months ago)
- Last Synced: 2024-06-27T10:35:13.743Z (7 months ago)
- Topics: container
- Language: Dockerfile
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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) -