{"id":16162107,"url":"https://github.com/peterdavehello/docker-yamllint","last_synced_at":"2026-02-26T02:43:53.910Z","repository":{"id":70808055,"uuid":"198258202","full_name":"PeterDaveHello/docker-yamllint","owner":"PeterDaveHello","description":"🐳 Dockerized yamllint with proper versioning, a linter for YAML files.","archived":false,"fork":false,"pushed_at":"2025-03-16T07:14:17.000Z","size":12,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T08:22:26.938Z","etag":null,"topics":["ci","container","continuous-integration","docker","docker-image","hacktoberfest","image","lint","linter","yaml","yamllint"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/peterdavehello/yamllint/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterDaveHello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-22T16:02:02.000Z","updated_at":"2025-03-16T07:13:51.000Z","dependencies_parsed_at":"2024-02-27T04:28:49.585Z","dependency_job_id":"2bb55b1e-d175-4785-9175-5795ef0fc64a","html_url":"https://github.com/PeterDaveHello/docker-yamllint","commit_stats":null,"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-yamllint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-yamllint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-yamllint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterDaveHello%2Fdocker-yamllint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterDaveHello","download_url":"https://codeload.github.com/PeterDaveHello/docker-yamllint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243950927,"owners_count":20373664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","container","continuous-integration","docker","docker-image","hacktoberfest","image","lint","linter","yaml","yamllint"],"created_at":"2024-10-10T02:29:05.185Z","updated_at":"2026-02-26T02:43:48.892Z","avatar_url":"https://github.com/PeterDaveHello.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-yamllint\n\n[![Build Status](https://app.travis-ci.com/PeterDaveHello/docker-yamllint.svg?branch=master)](https://app.travis-ci.com/PeterDaveHello/docker-yamllint)\n[![Docker Hub pulls](https://img.shields.io/docker/pulls/peterdavehello/yamllint.svg)](https://hub.docker.com/r/peterdavehello/yamllint/)\n\n[![Docker Hub badge](http://dockeri.co/image/peterdavehello/yamllint)](https://hub.docker.com/r/peterdavehello/yamllint/)\n\nDockerized [yamllint](https://github.com/adrienverge/yamllint) with various versions, easy to use and easy to integrate with CI.\n\n## Table of Contents\n\n- [Usage](#usage)\n  - [Command line](#command-line)\n    - [Use latest version](#use-latest-version)\n    - [Use specific version](#use-specific-version)\n  - [Continuous Integration (CI)](#continuous-integration-ci)\n    - [Travis CI](#travis-ci)\n    - [GitLab CI](#gitlab-ci)\n- [Build](#build)\n\n## Usage\n\n### Command line\n\n#### Use latest version\n\n```sh\ndocker run --rm -v $PATH_TO_YAML:/yaml peterdavehello/yamllint yamllint YAML_FILE.yml\n\n# Please replace \"$PATH_TO_YAML\" with your custom path,\n# and replace \"YAML_FILE.yml\" with your real yaml file filename.\n```\n\n#### Use specific version\n\nJust like above, but you can specify version of yamllint, for example:\n\n```sh\ndocker run --rm -v $PATH_TO_YAML:/yaml peterdavehello/yamllint:1.16.0 yamllint YAML_FILE.yml\n\n# Please replace \"1.16.0\" with the version number you want.\n# Don't forget to replace \"$PATH_TO_YAML\" \u0026 \"YAML_FILE.yml\".\n```\n\n### Continuous Integration (CI)\n\n#### Travis CI\n\nEnable Docker service in your `.travis.yml`:\n\n```yaml\nservices:\n  - docker\n```\n\nAnd use the same command in the `scripts` part as the command line mentions, for example:\n\n```yaml\nservices:\n  - docker\n\nscripts:\n  - docker run --rm -v $TRAVIS_BUILD_DIR:/yaml peterdavehello/yamllint:1.16.0 yamllint .travis.yml\n```\n\nThis will lint the Travis CI config file `.travis.yml`\n\n#### GitLab CI\n\nAdd this block to your `.gitlab-ci.yml`:\n\n```yaml\nyamllint:\n  stage: lint\n  variables:\n    yamllint_version: \"1.16.0\"\n  image: peterdavehello/yamllint:$yamllint_version\n  only:\n    changes:\n      - \"**/*.yml\"\n      - \"**/*.yaml\"\n  script:\n    - find . -name \"*.yml\" -o -name \"*.yaml\" | xargs -n 1 yamllint\n```\n\nReplace \"1.16.0\" with the version you want to use, you can also use \"latest\" for the very new version.\n\n## Build\n\nBuild command, you need to specify a valid yamllint version argument to `YAMLLINT_VERSION`:\n\n```sh\ndocker build --build-arg YAMLLINT_VERSION=\"1.16.0\" -t docker-yamllint .\n\n# Replace \"docker-yamllint\" with the preferred image name\n```\n\nYou can find a valid version in the [release history](https://pypi.org/project/yamllint/#history) on PyPI, or just poke the [API](https://pypi.org/pypi/yamllint/json) to retrieve more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fdocker-yamllint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterdavehello%2Fdocker-yamllint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterdavehello%2Fdocker-yamllint/lists"}