diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e1569fe --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,25 @@ +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' + } +} \ No newline at end of file