Actualiser Jenkinsfile
This commit is contained in:
parent
52fb9f61f1
commit
00bfd08272
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
|
@ -1,5 +1,10 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { docker { image 'node:20' } }
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'node:20'
|
||||||
|
args '-v /var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
|
@ -31,7 +36,8 @@ pipeline {
|
||||||
sh '''
|
sh '''
|
||||||
echo "🚀 Déploiement du frontend via Docker Compose..."
|
echo "🚀 Déploiement du frontend via Docker Compose..."
|
||||||
cd /srv/devops/the-tip-top
|
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
|
docker compose up -d --build the-tip-top-frontend
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user