add jenkins
This commit is contained in:
Vendored
+23
@@ -0,0 +1,23 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('使用MAVNE构建') {
|
||||||
|
steps {
|
||||||
|
sh 'mvn clean package -DskipTests'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('复制Jar包') {
|
||||||
|
steps {
|
||||||
|
sh 'cp target/rongshuo.jar ./rongshuo.jar'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Docker Compose 发布') {
|
||||||
|
steps {
|
||||||
|
sh 'docker compose up -d --build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
rongshuo:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "8088:8088"
|
||||||
|
restart: unless-stopped
|
||||||
Reference in New Issue
Block a user