31 lines
987 B
YAML
31 lines
987 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)
|
|
comment: >
|
|
✅ Build ${CI_BUILD_EVENT} of `${CI_REPO_NAME}` has status `${CI_BUILD_STATUS}`.
|
|
|
|
`${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]
|