Compare commits
2 commits
3ee2cb2b2a
...
79945025ca
Author | SHA1 | Date | |
---|---|---|---|
79945025ca | |||
63680bce5f |
1 changed files with 4 additions and 55 deletions
59
.drone.yml
59
.drone.yml
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Lint on PR
|
||||
|
@ -7,9 +8,10 @@ trigger:
|
|||
- pull_request
|
||||
|
||||
steps:
|
||||
- name: lint_docker_compose
|
||||
- name: python3.8
|
||||
image: python:3.8-slim-bullseye
|
||||
commands:
|
||||
- "python3 --version"
|
||||
- "pip3 install yamllint"
|
||||
- "yamllint --version"
|
||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
||||
|
@ -28,57 +30,4 @@ steps:
|
|||
- "python3 --version"
|
||||
- "pip3 install yamllint"
|
||||
- "yamllint --version"
|
||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
||||
|
||||
# Add conditional steps for specific directories here
|
||||
- name: lint_arrs_directory
|
||||
image: python:3.8-slim-bullseye
|
||||
commands:
|
||||
- "pip3 install yamllint"
|
||||
- "yamllint --version"
|
||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" arrs/*.yml'
|
||||
when:
|
||||
condition:
|
||||
- change_match:
|
||||
path:
|
||||
- "arrs/docker-compose.yml"
|
||||
|
||||
- name: lint_downloaders_directory
|
||||
image: python:3.8-slim-bullseye
|
||||
commands:
|
||||
- "pip3 install yamllint"
|
||||
- "yamllint --version"
|
||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" downloaders/*.yml'
|
||||
when:
|
||||
condition:
|
||||
- change_match:
|
||||
path:
|
||||
- "downloaders/docker-compose.yml"
|
||||
---
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Update Branches
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
branch:
|
||||
- main
|
||||
|
||||
steps:
|
||||
- name: Update arrs branch
|
||||
image: plugins/git
|
||||
settings:
|
||||
branch: arrs
|
||||
base: main
|
||||
paths:
|
||||
- arrs/*
|
||||
|
||||
- name: Update downloaders branch
|
||||
image: plugins/git
|
||||
settings:
|
||||
branch: downloaders
|
||||
base: main
|
||||
paths:
|
||||
- downloaders/*
|
||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
Reference in a new issue