d75afe0aac
- ci.yml: tests PHPUnit, Pint, audit securite, build Vite - deploy.yml: build image -> registre Gitea -> webhook Portainer -> health check - modeles d'issues (incident / evolution) et de Pull Request - docker-compose du runner act_runner Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
1.5 KiB
YAML
29 lines
1.5 KiB
YAML
# ─────────────────────────────────────────────────────────────
|
|
# Runner Gitea Actions (act_runner)
|
|
# À déployer sur le serveur (via Portainer ou docker compose).
|
|
# Il exécute les workflows définis dans .gitea/workflows/.
|
|
#
|
|
# Étapes d'enregistrement :
|
|
# 1. Dans Gitea : Administration ▸ Actions ▸ Runners ▸ "Create new runner"
|
|
# pour obtenir le REGISTRATION TOKEN.
|
|
# 2. Renseigner GITEA_RUNNER_REGISTRATION_TOKEN ci-dessous (ou via .env).
|
|
# 3. `docker compose up -d`
|
|
# ─────────────────────────────────────────────────────────────
|
|
services:
|
|
act_runner:
|
|
image: gitea/act_runner:latest
|
|
container_name: gitea-act-runner
|
|
restart: always
|
|
environment:
|
|
# URL de l'instance Gitea
|
|
GITEA_INSTANCE_URL: https://gitea.sam-coffre.duckdns.org
|
|
# Jeton d'enregistrement récupéré dans l'admin Gitea
|
|
GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}"
|
|
GITEA_RUNNER_NAME: cesizen-runner
|
|
# Images utilisées pour les labels (ubuntu-latest => image complète)
|
|
GITEA_RUNNER_LABELS: "ubuntu-latest:docker://catthehacker/ubuntu:act-latest"
|
|
volumes:
|
|
# Le runner a besoin du socket Docker pour lancer les jobs conteneurisés
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./data:/data
|