Compare commits
1 Commits
main
...
3202ede472
| Author | SHA1 | Date | |
|---|---|---|---|
| 3202ede472 |
36
.gitea/workflows/ci.yaml
Normal file
36
.gitea/workflows/ci.yaml
Normal file
@@ -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 {} \;'
|
||||||
|
|
||||||
Reference in New Issue
Block a user