Files
homelab/.gitea/workflows/ci.yaml
T

29 lines
758 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: CI validate docker composes
on:
push:
branches: [dev]
pull_request:
branches: [main]
jobs:
validate:
runs-on: ci
steps:
- name: Install Node and tools
run: |
apk add --no-cache nodejs yamllint docker-cli-compose git
- uses: actions/checkout@v4
- name: Lint all compose files
run: |
find . \( -name "compose.yaml" -o -name "docker-compose.yaml" \) -print0 | xargs -0 yamllint -d "{extends: relaxed, rules: {line-length: disable}}"
- name: Validate docker compose syntax
run: |
for f in $(find . -name "compose.yaml" -o -name "docker-compose.yaml"); do
echo "Checking: $f"
docker compose -f "$f" config -q
done