Compare commits
No commits in common. "79945025ca72f1dc805bb2a247ffced292b6d3fc" and "3ee2cb2b2a3821ba4efc83f9b0c694e7a999825c" have entirely different histories.
79945025ca
...
3ee2cb2b2a
1 changed files with 55 additions and 4 deletions
57
.drone.yml
57
.drone.yml
|
@ -1,4 +1,3 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Lint on PR
|
name: Lint on PR
|
||||||
|
@ -8,10 +7,9 @@ trigger:
|
||||||
- pull_request
|
- pull_request
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: python3.8
|
- name: lint_docker_compose
|
||||||
image: python:3.8-slim-bullseye
|
image: python:3.8-slim-bullseye
|
||||||
commands:
|
commands:
|
||||||
- "python3 --version"
|
|
||||||
- "pip3 install yamllint"
|
- "pip3 install yamllint"
|
||||||
- "yamllint --version"
|
- "yamllint --version"
|
||||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
||||||
|
@ -31,3 +29,56 @@ steps:
|
||||||
- "pip3 install yamllint"
|
- "pip3 install yamllint"
|
||||||
- "yamllint --version"
|
- "yamllint --version"
|
||||||
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
- '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/*
|
Reference in a new issue