GitHub Action Example for DCLint
Automate linting as part of your CI/CD pipeline by adding the GitHub Action to your pipeline. This ensures that your Docker Compose files are always checked for errors before deployment.
name: Lint Docker Compose
on:
push:
branches:
- main
pull_request:
jobs:
dclint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker-compose-linter/dclint-github-action@v{$ACTION_VERSION}
with:
path: ./path-to-compose-files/
recursive: true
More usage examples is in docker-compose-linter/dclint-github-action.
- Basic Action with Annotations and Summary
- Docker Action with Annotations
- Reviewdog integration with PR Review
This project is licensed under the MIT License. See the LICENSE file for more information.
If you find this repository helpful, kindly consider showing your appreciation by giving it a star ⭐.
If you have any questions or suggestions, feel free to reach out:
- Email: s.kupletsky@gmail.com
- Х/Twitter: zavoloklom
- Instagram: zavoloklom
- GitHub: zavoloklom
Also, you can support this project with a one-time donation or becoming a sponsor: