https://github.com/hyperized/yaml-linter
Tiny YAML linter Docker instance
https://github.com/hyperized/yaml-linter
docker yaml
Last synced: 5 months ago
JSON representation
Tiny YAML linter Docker instance
- Host: GitHub
- URL: https://github.com/hyperized/yaml-linter
- Owner: hyperized
- License: mit
- Created: 2018-10-15T09:08:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-20T14:47:39.000Z (about 6 years ago)
- Last Synced: 2025-02-24T02:26:31.939Z (11 months ago)
- Topics: docker, yaml
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yaml-linter
Tiny YAML linter Docker instance.
Available as: `hyperized/yaml-linter` at: https://cloud.docker.com/u/hyperized/repository/docker/hyperized/yaml-linter
Based on `ruby:alpine`.
Image size: 26 MB
# How to use
## Docker stand-alone
Checking all the files (recursively) in current directory
```sh
docker run -v $(pwd):/m --rm -it hyperized/yaml-linter yaml-lint -i -q /m
```
## .gitlab-ci.yml
How to check your code-base for YAML errors in Gitlab CI
```yaml
image: hyperized/yaml-linter:latest
stages:
- yaml
yaml_lint:
stage: yaml
script:
- yaml-lint -i -q .
```