docker-services/.woodpecker/lint.yml
2025-01-06 21:50:09 +01:00

31 lines
945 B
YAML

steps:
check_ports_labels:
image: python:3.12
commands:
- pip3 install -r .ci/requirements.txt
- python3 .ci/port_attribution_watcher.py | tee output.txt
- python3 .ci/traefik_label_watcher.py | tee output.txt
comment:
image: mcs94/gitea-comment
settings:
gitea_address: https://git.gnous.eu
gitea_token:
from_secret: gnous_cicd_token
commands:
- STEP_1_OUTPUT=$(cat output.txt)
- echo "test"
- cat output.txt
comment: >
`${STEP_1_OUTPUT}`
🌐 ${CI_BUILD_LINK}
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
when:
- event: [push, pull_request]