parent
4ab570a14c
commit
588f04f45f
@ -0,0 +1,28 @@
|
||||
pipeline {
|
||||
agent {
|
||||
node {
|
||||
label 'willa'
|
||||
}
|
||||
|
||||
}
|
||||
stages {
|
||||
stage('build') {
|
||||
steps {
|
||||
sh ' docker build -t registry.willaspace.com/willaspace/$IMAGE_NAME:latest .'
|
||||
}
|
||||
}
|
||||
|
||||
stage('deploy') {
|
||||
steps {
|
||||
dir(path: '/home/administrator/apps/karmmania/') {
|
||||
sh 'docker-compose up -d'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
environment {
|
||||
IMAGE_NAME = 'karmmania'
|
||||
}
|
||||
}
|
Loading…
Reference in new issue