docker-services/.woodpecker/lint.yml
2025-01-06 22:35:42 +01:00

37 lines
No EOL
1.1 KiB
YAML

steps:
check_ports_labels:
image: python:3.12
commands:
- pip3 install -r .ci/requirements.txt
- ./.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]
lint:
image: debian:stable
commands:
- apt-get update
- apt-get install -y curl
- curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
- chmod +x /usr/local/bin/docker-compose
- sh .ci/lint.sh | tee output.txt
comment_lint:
image: git.gnous.eu/enpls/gitea-comment-plugin:stable
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"]'