|
@@ -17,7 +17,7 @@ pipeline {
|
|
|
steps {
|
|
steps {
|
|
|
script {
|
|
script {
|
|
|
def registryUrl = 'nexus.foodgame.fr:8123'
|
|
def registryUrl = 'nexus.foodgame.fr:8123'
|
|
|
- def imageName = 'grafana/tns-db'
|
|
|
|
|
|
|
+ def imageName = 'quay.io/prometheus/node-exporter'
|
|
|
def imageVersion = 'latest'
|
|
def imageVersion = 'latest'
|
|
|
|
|
|
|
|
docker.withRegistry("https://${registryUrl}", 'nexus') {
|
|
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)
|
|
// ... (autres stages inchangés)
|
|
|
}
|
|
}
|