2024-02-14 18:32:37 -05:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2024-02-14 19:02:55 -05:00
|
|
|
name: Lint on PR
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- pull_request
|
2024-02-14 18:32:37 -05:00
|
|
|
|
|
|
|
steps:
|
2024-02-28 21:22:38 -05:00
|
|
|
- name: lint_docker_compose
|
|
|
|
image: python:3.8-slim-bullseye
|
|
|
|
commands:
|
|
|
|
- "pip3 install yamllint"
|
|
|
|
- "yamllint --version"
|
|
|
|
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" ./*.yml'
|
|
|
|
|
2024-02-14 19:02:55 -05:00
|
|
|
- name: python3.8
|
|
|
|
image: python:3.8-slim-bullseye
|
|
|
|
commands:
|
|
|
|
- "python3 --version"
|
|
|
|
- "pip3 install yamllint"
|
|
|
|
- "yamllint --version"
|
2024-02-15 22:06:11 -05:00
|
|
|
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
2024-02-14 19:02:55 -05:00
|
|
|
|
|
|
|
- name: python3.9
|
|
|
|
image: python:3.9-slim-bullseye
|
|
|
|
commands:
|
|
|
|
- "python3 --version"
|
|
|
|
- "pip3 install yamllint"
|
|
|
|
- "yamllint --version"
|
2024-02-15 22:10:10 -05:00
|
|
|
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
2024-02-14 19:02:55 -05:00
|
|
|
|
|
|
|
- name: python3.10
|
|
|
|
image: python:3.10-slim-bullseye
|
2024-02-14 18:32:37 -05:00
|
|
|
commands:
|
2024-02-14 19:02:55 -05:00
|
|
|
- "python3 --version"
|
|
|
|
- "pip3 install yamllint"
|
|
|
|
- "yamllint --version"
|
2024-02-15 22:10:10 -05:00
|
|
|
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
|
2024-02-28 21:22:38 -05:00
|
|
|
|
|
|
|
# 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}}}" ./arr/*.yml'
|
|
|
|
when:
|
|
|
|
condition:
|
|
|
|
- change_match:
|
|
|
|
path:
|
|
|
|
- "^arrs/.*\.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:
|
2024-02-28 21:29:23 -05:00
|
|
|
- "^downloaders/.*\.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
|
|
|
|
commit: ${DRONE_COMMIT_SHA}
|
|
|
|
paths:
|
|
|
|
- arrs/*
|
|
|
|
|
|
|
|
- name: Update downloaders branch
|
|
|
|
image: plugins/git
|
|
|
|
settings:
|
|
|
|
branch: downloaders
|
|
|
|
base: main
|
|
|
|
commit: ${DRONE_COMMIT_SHA}
|
|
|
|
paths:
|
|
|
|
- downloaders/*
|