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