diff --git a/.drone.yml b/.drone.yml index 397ce79..06a8c85 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,23 @@ +--- +kind: pipeline +name: lint + +steps: +- name: yaml lint + image: cytopia/yamllint + commands: + - yamllint . + +- name: docker lint + image: hadolint/hadolint + commands: + - hadolint Dockerfile # ignore pinning version in pip + +- name: markdown lint + image: pipelinecomponents/markdownlint:latest + commands: + - mdl --style all --warnings . + --- kind: pipeline name: build @@ -16,6 +36,8 @@ steps: event: exclude: - pull_request +depends_on: +- lint --- deploy_commands_alias: diff --git a/.yamllint b/.yamllint new file mode 100644 index 0000000..9fb2ded --- /dev/null +++ b/.yamllint @@ -0,0 +1,9 @@ +--- +extends: default + +rules: + indentation: + indent-sequences: consistent + line-length: + max: 170 + level: warning