sauvegarde avant pull
This commit is contained in:
parent
4f5d39726b
commit
8404d365f8
31
Jenkinsfile
vendored
31
Jenkinsfile
vendored
|
|
@ -1,31 +0,0 @@
|
|||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
COMPOSE_DIR = '/srv/devops/the-tip-top'
|
||||
SERVICE = 'backend'
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Build & Deploy') {
|
||||
steps {
|
||||
sh """
|
||||
cd ${COMPOSE_DIR}
|
||||
docker compose up -d ${SERVICE}
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
echo "✅ Backend déployé avec succès."
|
||||
}
|
||||
failure {
|
||||
echo "❌ Échec du déploiement du backend."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
DB_HOST=the-tip-top-db
|
||||
DB_USER=postgres
|
||||
DB_PASS=postgres
|
||||
DB_NAME=thetiptop
|
||||
PORT=4000
|
||||
31
backend/Jenkinsfile
vendored
31
backend/Jenkinsfile
vendored
|
|
@ -1,31 +0,0 @@
|
|||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
COMPOSE_DIR = '/srv/devops/the-tip-top'
|
||||
SERVICE = 'backend'
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Build & Deploy') {
|
||||
steps {
|
||||
sh """
|
||||
cd ${COMPOSE_DIR}
|
||||
docker compose up -d ${SERVICE}
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
echo "✅ Backend déployé avec succès."
|
||||
}
|
||||
failure {
|
||||
echo "❌ Échec du déploiement du backend."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
0
backend/node_modules/.package-lock.json → node_modules/.package-lock.json
generated
vendored
0
backend/node_modules/.package-lock.json → node_modules/.package-lock.json
generated
vendored
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user