mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 21:11:05 +03:30
Update 'Jenkinsfile'
This commit is contained in:
Vendored
+4
-3
@@ -8,18 +8,19 @@ pipeline {
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
sh ' - docker build -t $IMAGE_NAME:latest .'
|
||||
sh 'docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .'
|
||||
sh 'cd /home/administrator/apps/$IMAGE_NAME/;sudo ./BuildDocker'
|
||||
}
|
||||
}
|
||||
|
||||
stage('deploy') {
|
||||
steps {
|
||||
dir(path: '/home/administrator/apps/cssd')
|
||||
sh 'cd /home/administrator/apps/$IMAGE_NAME/ ; docker-compose up -d'
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
environment {
|
||||
IMAGE_NAME = 'CSSD'
|
||||
IMAGE_NAME = 'cssd'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user