From 3202ede47238853a0d78ac6940ea564b179ff47c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Math=C3=A9o=20DESSAAUVAGES?= Date: Fri, 26 Dec 2025 14:14:02 +0100 Subject: [PATCH] feat: Added CI Pipeline - Lint the Docker Compose files using DCLinter Github Action - Format the Docker Compose files with the 'compose_format' Python module --- .gitea/workflows/ci.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..113713c --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,36 @@ +name: Lint and Format Docker Compose files + +on: + push: + branches: [development] + pull_request: + branches: [main] + +jobs: + lint: + name: Docker Compose Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: "Lint Docker Compose files" + uses: docker-compose-linter/dclint-github-action@v1.6.0 + with: + path: . + recursive: true + + format: + name: Docker Compose formatting + runs-on: ubuntu-latest + needs: [lint] + steps: + - uses: actions/checkout@v5 + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version: '3.12' + cache: 'pip' + - name: "Install compose_format module" + run: 'pip install compose_format' + - name: "Format Docker Compose files" + run: 'find . -iname "*.yaml" -exec compose_format --replace {} \;' +