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 .vscode
.env.priv .env.priv
.venv

View file

@ -1,14 +1,25 @@
steps: 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: lint:
image: debian:stable-slim image: debian:stable-slim
commands: commands:
- apt-get update - apt-get update
- apt-get install -y curl - 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 - 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 - sh .ci/lint.sh
when: when:
- event: pull_request - event: pull_request
repo: gnouseu/docker-services repo: gnouseu/docker-services
- event: push - event: push
branch: main branch: main

View file

@ -1,3 +1,14 @@
# Services Gnous # 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 image: git.gnous.eu/gnouseu/wiki:v3
restart: unless-stopped restart: unless-stopped
ports: ports:
- "3005:80" - "3010:80"
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.wiki.entryPoints=websecure" - "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.entrypoints=websecure"
- "traefik.http.routers.woodpecker-grpc-secure.service=woodpecker-grpc" - "traefik.http.routers.woodpecker-grpc-secure.service=woodpecker-grpc"
- "traefik.http.routers.woodpecker-grpc.middlewares=woodpecker-grpc-redirect@docker" - "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: depends_on:
- db - db