feat(ci): added yamllint
This commit is contained in:
parent
c32fc57834
commit
6c69b8fa61
2 changed files with 29 additions and 14 deletions
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
|
||||
# linting
|
||||
linting:
|
||||
ansible-lint:
|
||||
stage: "linting"
|
||||
image:
|
||||
name: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
|
||||
image: "docker.io/pipelinecomponents/ansible-lint:0.79.0"
|
||||
rules:
|
||||
|
||||
# run only on push to default branch
|
||||
|
|
@ -14,3 +13,18 @@ linting:
|
|||
# start linting
|
||||
script:
|
||||
- "ansible-lint -c .ansible-lint ."
|
||||
|
||||
# yamllint
|
||||
yamllint:
|
||||
stage: "linting"
|
||||
image: "registry.gitlab.com/pipeline-components/yamllint:0.35.0"
|
||||
rules:
|
||||
|
||||
# run only on push to default branch
|
||||
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||
- when: "never"
|
||||
|
||||
script:
|
||||
|
||||
# run yamllint
|
||||
- "yamllint ."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue