You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
424 B
28 lines
424 B
4 years ago
|
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'
|
||
|
}
|
||
|
}
|