Date ajout : 12/01/2026 Priorite : MOYENNE Categorie : DEV Statut : TERMINE Effort estime : L
Configurer GitLab CI/CD pour automatiser le deploiement des projets sur prod-portainer.
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
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'
}
Variable instance-level:
SSH_PRIVATE_KEY (file) - Cle ed25519 pour SSH vers prod-portainerCrees dans /stock_8to/33800-stack/docker/templates/ci-cd/:
.gitlab-ci-docker.yml - Template complet build + deploy.gitlab-ci-simple.yml - Template minimaliste.gitlab-ci-notif-logger.yml - Exemple specifiquePipeline teste sur gouroubleu/notifications (ID: 72):
Push main → Test auto → Deploy manuel → Notification
12/01/2026 - Runner installe, pipeline teste avec succes