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.
25 lines
375 B
25 lines
375 B
3 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 {
|
||
|
sh 'cd /apps/$IMAGE_NAME/; docker-compose up -d'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
environment {
|
||
|
IMAGE_NAME = 'champya-front'
|
||
|
}
|
||
|
}
|