Update .drone.yml
This commit is contained in:
parent
d64fa150c4
commit
a1c1848a82
1 changed files with 4 additions and 3 deletions
|
@ -13,9 +13,10 @@ steps:
|
||||||
- "python3 --version"
|
- "python3 --version"
|
||||||
- "pip3 install yamllint"
|
- "pip3 install yamllint"
|
||||||
- "yamllint --version"
|
- "yamllint --version"
|
||||||
- '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 "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
||||||
|
- 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
||||||
|
|
||||||
- name: python3.9
|
- name: python3.10
|
||||||
image: python:3.9-slim-bullseye
|
image: python:3.9-slim-bullseye
|
||||||
commands:
|
commands:
|
||||||
- "python3 --version"
|
- "python3 --version"
|
||||||
|
@ -24,7 +25,7 @@ steps:
|
||||||
- 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
- 'find . -name "*.yml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
||||||
- 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
- 'find . -name "*.yaml" ! -name ".drone.yml" -exec yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" {} +'
|
||||||
|
|
||||||
- name: python3.10
|
- name: python3.12
|
||||||
image: python:3.10-slim-bullseye
|
image: python:3.10-slim-bullseye
|
||||||
commands:
|
commands:
|
||||||
- "python3 --version"
|
- "python3 --version"
|
||||||
|
|
Reference in a new issue