Compare commits

...

3 commits

Author SHA1 Message Date
b573b4cb85 add cicd 2025-01-06 21:18:01 +01:00
c492de29d9 update ci setup 2025-01-06 21:11:08 +01:00
fff7b70527 fix conflicts 2025-01-06 21:10:56 +01:00
7 changed files with 30 additions and 6 deletions

0
.ci/lint.sh Normal file → Executable file
View file

1
.ci/requirements.txt Normal file
View file

@ -0,0 +1 @@
pyyaml==6.0.2

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
.vscode
.env.priv
.env.priv
.venv

View file

@ -1,14 +1,25 @@
steps:
check_ports_labels:
image: python:3.12-slim
commands:
- pip3 install -r .ci/requirements.txt
- python3 .ci/port_attribution_watcher.py
- python3 .ci/traefik_labels_watcher.py
when:
- event: pull_request
repo: gnouseu/docker-services
- event: push
branch: main
lint:
image: debian:stable-slim
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
- chmod +x /usr/local/bin/docker-compose
- sh .ci/lint.sh
when:
- event: pull_request
repo: gnouseu/docker-services
- event: push
branch: main
branch: main

View file

@ -1,3 +1,14 @@
# Services Gnous
L'ensemble des docker compose pour les services du projet Gnous.
L'ensemble des docker compose pour les services du projet Gnous.
## Lint
```
python3 -m venv .venv/
source .venv/bin/activate
pip install -r .ci/requirements.txt
python3 .ci/port_attribution_watcher.py
python3 .ci/traefik_label_watcher.py
./.ci/lint.sh
```

View file

@ -7,7 +7,7 @@ services:
image: git.gnous.eu/gnouseu/wiki:v3
restart: unless-stopped
ports:
- "3005:80"
- "3010:80"
labels:
- "traefik.enable=true"
- "traefik.http.routers.wiki.entryPoints=websecure"

View file

@ -53,7 +53,7 @@ services:
- "traefik.http.routers.woodpecker-grpc-secure.entrypoints=websecure"
- "traefik.http.routers.woodpecker-grpc-secure.service=woodpecker-grpc"
- "traefik.http.routers.woodpecker-grpc.middlewares=woodpecker-grpc-redirect@docker"
- "traefik.http.routers.gnousdoteu.middlewares=proxyHeader@file,proxyError@file"
- "traefik.http.routers.woodpecker-grpc.middlewares=proxyHeader@file,proxyError@file"
depends_on:
- db