This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
Auto-Homelab/.drone.yml
Matt Reeves 3cd81ad97f
All checks were successful
continuous-integration/drone/push Build is passing
Update .drone.yml
2024-02-29 03:04:35 +00:00

84 lines
No EOL
1.9 KiB
YAML

kind: pipeline
type: docker
name: Lint on PR
trigger:
event:
- pull_request
steps:
- 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}}}" .'
- name: python3.9
image: python:3.9-slim-bullseye
commands:
- "python3 --version"
- "pip3 install yamllint"
- "yamllint --version"
- 'yamllint -d "{extends: relaxed, rules: {line-length: {max: 120}}}" .'
- name: python3.10
image: python:3.10-slim-bullseye
commands:
- "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/*