33800 Docs

← Retour

Backlog : GitLab CI/CD pour deploiement

Date ajout : 12/01/2026 Priorite : MOYENNE Categorie : DEV Statut : TERMINE Effort estime : L


Objectif

Configurer GitLab CI/CD pour automatiser le deploiement des projets sur prod-portainer.

Implementation

1. GitLab Runner

Installation:

curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
sudo apt-get install -y gitlab-runner
sudo usermod -aG docker gitlab-runner

2. Configuration GitLab

Correction de la configuration GitLab pour le reverse proxy:

external_url 'https://gitlab.33800.nowhere84.com'
letsencrypt['enable'] = false
nginx['listen_port'] = 80
nginx['listen_https'] = false
nginx['proxy_set_headers'] = {
  'X-Forwarded-Proto' => 'https',
  'X-Forwarded-Ssl' => 'on'
}

3. Variables CI/CD

Variable instance-level:

4. Templates

Crees dans /stock_8to/33800-stack/docker/templates/ci-cd/:

5. Test

Pipeline teste sur gouroubleu/notifications (ID: 72):

Workflow

Push main → Test auto → Deploy manuel → Notification

Notes

Complete

12/01/2026 - Runner installe, pipeline teste avec succes