docker-services/.woodpecker/lint.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2024-10-20 21:56:46 +02:00
steps:
2025-01-06 21:18:01 +01:00
check_ports_labels:
2025-01-06 20:18:52 +00:00
image: python:3.13-slim
2025-01-06 21:18:01 +01:00
commands:
- pip3 install -r .ci/requirements.txt
2025-01-06 21:32:33 +01:00
- ./.ci/gen_output.sh
comment:
image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
settings:
gitea_address: https://git.gnous.eu
gitea_token:
from_secret: gnous_cicd_token
comment_file: output.txt
when:
status: [failure, success]
event: [pull_request]
2024-10-20 21:56:46 +02:00
lint:
2025-01-06 21:32:33 +01:00
image: debian:stable
2024-10-20 21:56:46 +02:00
commands:
2025-01-06 21:32:33 +01:00
- rm -rf output.txt
2024-10-20 21:56:46 +02:00
- apt-get update
- apt-get install -y curl
2025-03-02 18:15:10 +01:00
- curl -SL https://github.com/docker/compose/releases/download/v2.33.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
2025-01-06 21:18:01 +01:00
- chmod +x /usr/local/bin/docker-compose
2025-01-06 21:32:33 +01:00
- bash .ci/lint_wrap.sh
comment_2:
image: git.gnous.eu/enpls/gitea-comment-plugin:1.1
settings:
gitea_address: https://git.gnous.eu
gitea_token:
from_secret: gnous_cicd_token
comment_file: output.txt
when:
status: [failure, success]
event: [pull_request]
when:
- event: [push, pull_request]
- evaluate: 'CI_COMMIT_AUTHOR in ["gnous-ci-bot", "mael", "ada"]'