2020-06-03 22:45:42 +02:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2020-06-04 17:42:46 +02:00
|
|
|
- name: lint markdown files
|
|
|
|
image: pipelinecomponents/remark-lint:latest
|
|
|
|
commands:
|
|
|
|
- "remark --no-stdout --color --use preset-lint-recommended ."
|
|
|
|
|
2020-06-04 17:41:49 +02:00
|
|
|
- name: lint yaml files
|
|
|
|
image: pipelinecomponents/yamllint:latest
|
|
|
|
commands:
|
|
|
|
- "yamllint ."
|
|
|
|
|
2020-06-03 22:45:42 +02:00
|
|
|
- name: lint ansible scripts
|
|
|
|
image: pipelinecomponents/ansible-lint:latest
|
|
|
|
commands:
|
|
|
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-playbook --syntax-check --list-tasks"
|
|
|
|
- "find . -maxdepth 1 -name '*.yml' | sort | grep -v '.drone.yml' | xargs ansible-lint"
|