🏠 الرئيسية
المقاييس
📊 جميع المقاييس 🦖 ديناصور v1 🦖 ديناصور v2 ✅ تطبيقات قائمة المهام 🎨 صفحات حرة إبداعية 🎯 FSACB - العرض النهائي 🌍 مقياس الترجمة
النماذج
🏆 أفضل 10 نماذج 🆓 نماذج مجانية 📋 جميع النماذج ⚙️ كيلو كود
الموارد
💬 مكتبة الأوامر 📖 قاموس الذكاء الاصطناعي 🔗 روابط مفيدة
Intermédiaire

Pipeline GitLab CI/CD

#gitlab #ci-cd #devops #yaml

Configure un fichier .gitlab-ci.yml complet pour tester et déployer.

Crée un fichier `.gitlab-ci.yml` pour une application Node.js. Stages requis : 1. **Build** : `npm install` et `npm build`. 2. **Test** : `npm test`, ne doit pas bloquer si échec sur la branche `dev` (allow_failure). 3. **Deploy** : Un job manuel qui ne s'exécute que sur la branche `main` (simulation d'un déploiement SSH). Utilise le cache pour `node_modules`.