feat: improve linting

This commit is contained in:
Simon Cornet 2025-06-05 11:16:03 +02:00
commit ba8b91a992
2 changed files with 14 additions and 5 deletions

View file

@ -4,7 +4,7 @@
deployment: deployment:
stage: "deployment" stage: "deployment"
image: image:
name: "cr.simoncor.net/siempie/ansible-deployment:latest" name: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
rules: rules:

View file

@ -1,12 +1,21 @@
--- ---
# linting # markdownlint
linting: markdown-lint:
stage: "linting" stage: "linting"
image: image:
name: "cr.simoncor.net/siempie/ansible-deployment:latest" name: "docker.io/davidanson/markdownlint-cli2:v0.18.1"
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
# start linting
script: script:
# run markdownlint
- "markdownlint-cli2 'readme.md' 'docs/**/*.md'"
# yamllint
yamllint:
stage: "linting"
image: "registry.gitlab.com/pipeline-components/yamllint:0.35.0"
script:
# run yamllint
- "yamllint ." - "yamllint ."