Actualiser Jenkinsfile

This commit is contained in:
wkadmin 2025-10-30 13:15:03 +00:00
parent 52fb9f61f1
commit 00bfd08272

10
Jenkinsfile vendored
View File

@ -1,5 +1,10 @@
pipeline {
agent { docker { image 'node:20' } }
agent {
docker {
image 'node:20'
args '-v /var/run/docker.sock:/var/run/docker.sock'
}
}
stages {
stage('Checkout') {
@ -31,7 +36,8 @@ pipeline {
sh '''
echo "🚀 Déploiement du frontend via Docker Compose..."
cd /srv/devops/the-tip-top
docker compose down the-tip-top-frontend || true
docker compose stop the-tip-top-frontend || true
docker compose rm -f the-tip-top-frontend || true
docker compose up -d --build the-tip-top-frontend
'''
}