|
@@ -7,8 +7,11 @@ pipeline {
|
|
|
stages {
|
|
|
stage('Build') {
|
|
|
steps {
|
|
|
+ sh 'docker-compose stop'
|
|
|
+ sh 'docker-compose rm -sf'
|
|
|
sh 'npm install --registry https://registry.npm.taobao.org'
|
|
|
sh 'npm run build:prod'
|
|
|
+ sh 'docker build -t HitSheep:0.1 .'
|
|
|
}
|
|
|
}
|
|
|
stage('Test') {
|
|
@@ -19,6 +22,7 @@ pipeline {
|
|
|
stage('Deploy') {
|
|
|
steps {
|
|
|
echo 'Deploying....'
|
|
|
+ sh 'docker-compose up -d'
|
|
|
}
|
|
|
}
|
|
|
}
|