Explorar el Código

build de Fatboar

lancement en prod du site sur la DEV
henri carmelo hace 10 meses
padre
commit
3c82e953a4
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  1. 10 1
      Jenkinsfile

+ 10 - 1
Jenkinsfile

@@ -17,7 +17,7 @@ pipeline {
             steps {
                 script {
                     def registryUrl = 'nexus.foodgame.fr:8123'
-                    def imageName = 'grafana/tns-db'
+                    def imageName = 'quay.io/prometheus/node-exporter'
                     def imageVersion = 'latest'
                     
                     docker.withRegistry("https://${registryUrl}", 'nexus') {
@@ -44,6 +44,15 @@ pipeline {
                 }
             }
         }
+        stage('Build & Deploy') {
+            steps {
+                sh '''
+              docker-compose stop
+               docker-compose build
+                docker-compose up -d
+                '''
+           }
+        }
 
         // ... (autres stages inchangés)
     }