Fixing drone workdir for yamllint

This commit is contained in:
Bastian de Byl
2020-09-25 14:32:44 -04:00
parent f97ab7e6f3
commit c71ba39abf

View File

@@ -10,7 +10,7 @@ steps:
- name: lint - name: lint
image: bdebyl/yamllint image: bdebyl/yamllint
command: command:
- export YML_FILES="$(find ansible/ -name '*.yml' -not -name '*vault*')" - export YML_FILES="$(find $PWD/ansible/ -name '*.yml' -not -name '*vault*')"
- . .lint-vars.sh - source "$PWD/.lint-vars.sh"
- ansible-lint -x "$ANSIBLE_LINT_SKIP_LIST" "$YML_FILES" - ansible-lint -x "$ANSIBLE_LINT_SKIP_LIST" "$YML_FILES"
- yamllint "$YML_FILES" - yamllint "$YML_FILES"