Commit 943f6b5e authored by 郭灿峰's avatar 郭灿峰

Update Jenkinsfile

parent ecf91832
pipeline { pipeline {
agent any agent any
stages { stages {
stage('Build') { stage('deploy') {
steps {
sh '/var/jenkins_home/plugins/apache-maven-3.6.3/bin/mvn clean package'
}
}
stage('Build image') {
steps {
sh 'docker build -t registry.lizhi.co/registry/pybbs .'
sh 'docker push registry.lizhi.co/registry/pybbs'
}
}
stage('deploy') {
steps { steps {
sh 'scp .docker-compose.yml 10.10.10.115:/app' sh 'scp .docker-compose.yml 10.10.10.115:/app'
sh 'ssh 10.10.10.115 cd /app && docker-compose down && docker-compose up -d' sh 'ssh 10.10.10.115 cd /app && docker-compose down && docker-compose up -d'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment