33800 Docs

← Retour

Backlog : GitLab - Gestion Code et CI/CD

Date ajout : 12/01/2026 Priorite : MOYENNE Categorie : DEV Statut : A FAIRE Effort estime : L (1-2 jours)


Objectif

Centraliser le code source sur GitLab et mettre en place CI/CD :


Etat actuel

Element Statut
GitLab CE Installe (192.168.1.196)
SSL Configure (gitlab.33800.nowhere84.com)
Backup Automatique (6h)
Repos Quelques projets
CI/CD Runners Non configure

Actions a faire

1. Migrer repos existants

Projet Source actuelle Action
notif-logger /stock_8to/33800-stack/projects/ Push vers GitLab
monitoring /stock_8to/33800-stack/monitoring/ Push vers GitLab
scripts /stock_8to/33800-stack/scripts/ Push vers GitLab
qwikpress Local dev Push vers GitLab

2. Configurer GitLab Runner

# Sur prod-portainer ou VM dediee
docker run -d \
  --name gitlab-runner \
  --restart unless-stopped \
  -v /var/run/docker.sock:/var/run/docker.sock \
  gitlab/gitlab-runner:latest

3. Pipeline type

# .gitlab-ci.yml
stages:
  - build
  - test
  - deploy

build:
  stage: build
  script:
    - docker build -t $CI_PROJECT_NAME .

deploy_prod:
  stage: deploy
  only:
    - main
  script:
    - docker compose -f docker-compose.prod.yml up -d

Integration Claude


Avantages

  1. Historique : Versionning complet du code
  2. Collaboration : Si equipe future
  3. CI/CD : Deploy automatique
  4. Backup : Code sauvegarde automatiquement
  5. Review : Merge requests pour validation

Prerequis


Notes

GitLab est deja installe mais sous-utilise. Ce backlog vise a centraliser tout le code et automatiser les deployments.