Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Capryc0rne committed Aug 22, 2024
1 parent 00f127f commit ccb235b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ pipeline {
post {
success {
echo 'Build and tests succeeded!'
sh 'docker-compose down'

// Deploy the application
dir('/srv/aio-tools/ressources_relationnelles') {
sh '''
docker-compose down
git fetch
git checkout jenkins
docker-compose up --build -d
'''
}

}
failure {
echo 'Build or tests failed.'
Expand Down

0 comments on commit ccb235b

Please sign in to comment.