Update .drone.yml

This commit is contained in:
Matt Reeves 2024-04-15 18:28:56 +00:00
parent 3856905108
commit 98572f461f

View file

@ -13,8 +13,7 @@ steps:
- "python3 --version" - "python3 --version"
- "pip3 install yamllint" - "pip3 install yamllint"
- "yamllint --version" - "yamllint --version"
- 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +' - 'for file in $(git diff --name-only $DRONE_COMMIT_BEFORE $DRONE_COMMIT_AFTER); do if [[ $file == *"docker-compose.yml"* ]]; then parent_dir=$(dirname "$file"); cd "$parent_dir"; yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" "$(basename "$file")"; cd -; fi; done'
- 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
- name: python3.9 - name: python3.9
image: python:3.9-slim-bullseye image: python:3.9-slim-bullseye