GitHub Action Example for DCLint

June 20, 2025 · View on GitHub

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.

Pull Request Examples

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Contacts and Support

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:

Also, you can support this project with a one-time donation or becoming a sponsor:

PayPal Patreon GitHub Sponsors Open Collective