diff --git a/homelab/.gitea/workflows/docker-compose-config.yaml b/homelab/.gitea/workflows/docker-compose-config.yaml new file mode 100644 index 00000000..61b6ffb7 --- /dev/null +++ b/homelab/.gitea/workflows/docker-compose-config.yaml @@ -0,0 +1,17 @@ +name: Docker Compose Config +run-name: ${{ gitea.actor }} is linting docker-compose files +on: [push] + +jobs: + docker-compose-config: + runs-on: docker:25-dind + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Get location of all docker-compose.yaml files + run: | + for compose in $(find "$PWD"/ -name docker-compose.yml); do + cd $(dirname $compose) + docker compose config + done + - run: echo "Job status ${{ job.status }}" \ No newline at end of file