Skip to content

Validate Docker Compose configurations without starting containers - #7

Merged
pratushnyi merged 2 commits into
mainfrom
chore/validate-docker-compose
Oct 5, 2026
Merged

pratushnyi merged 2 commits into
mainfrom
chore/validate-docker-compose

Conversation

@pratushnyi

@pratushnyi pratushnyi commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Add a lightweight GitHub Actions check for all five Docker Compose configurations on pushes to main, pull requests, and manual runs. Restricting push checks to main avoids duplicate push and pull request runs for feature branches. Each file is validated with docker compose config --quiet using its matching env-example, so invalid YAML or Compose models fail CI without pulling images or starting containers. The workflow uses read-only repository permissions, and the README includes a local validation command.

Verification

  • Parsed the workflow YAML and checked the validation script with bash -n.
  • Ran the exact workflow script locally with an unavailable Docker daemon endpoint; all five configurations passed.
  • git diff --check passed.
  • Existing warnings about the obsolete version field and unset TLS_ENDPOINTS remain non-blocking.
  • The updated workflow passed on GitHub Actions for the pull request.

@cheshi-mantu
cheshi-mantu self-requested a review October 5, 2026 09:08

@cheshi-mantu cheshi-mantu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vaya con Dios

@pratushnyi
pratushnyi merged commit 2532238 into main Oct 5, 2026
1 check passed
@pratushnyi
pratushnyi deleted the chore/validate-docker-compose branch October 5, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants