pez-infra/.github/workflows/lint-docker-compose.yml
Rasmus "Pez" Wejlgaard b16f89357b
replace hard set ip with vars (#25)
* replace hard set ip with vars

* run all PR checks every time
2026-03-29 21:33:50 +01:00

25 lines
728 B
YAML

name: Lint Docker Compose
on:
pull_request:
jobs:
compose-lint:
name: docker compose config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate Compose files
run: |
found=0
shopt -s globstar nullglob
for f in ansible/services/**/docker-compose.yml ansible/services/**/docker-compose.yaml ansible/services/**/compose.yml ansible/services/**/compose.yaml; do
echo "::group::Validating $f"
docker compose -f "$f" config --quiet 2>&1 || true
echo "::endgroup::"
found=1
done
if [ "$found" -eq 0 ]; then
echo "No Compose files found — skipping."
fi