build: 多架构镜像构建 (#10690)
* build: 多架构镜像构建 * build: 多架构镜像构建 * build: 多架构镜像构建 Co-authored-by: CaptainB <bin@fit2cloud.com>
This commit is contained in:
parent
ef029dd23a
commit
fc6c2e9e7c
|
@ -51,7 +51,7 @@ jobs:
|
|||
run: mvn -B package --file pom.xml
|
||||
|
||||
- name: Unzip jar
|
||||
run: mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)
|
||||
run: mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar) && mkdir -p backend/target/dependency/BOOT-INF/classes/jmeter/lib/junit
|
||||
|
||||
- name: Prepare
|
||||
id: prepare
|
||||
|
|
|
@ -9,10 +9,10 @@ COPY ${DEPENDENCY}/BOOT-INF/lib /opt/lib
|
|||
COPY ${DEPENDENCY}/META-INF /opt/META-INF
|
||||
COPY ${DEPENDENCY}/BOOT-INF/classes /opt
|
||||
|
||||
ENV JAVA_CLASSPATH=/opt:/opt/lib/ms-jmeter-core-*.jar:/opt/lib/*
|
||||
ENV JAVA_CLASSPATH=/opt:/opt/lib/ms-jmeter-core.jar:/opt/lib/*
|
||||
ENV JAVA_MAIN_CLASS=io.metersphere.Application
|
||||
ENV AB_OFF=true
|
||||
ENV MS_VERSION=${MS_VERSION}
|
||||
ENV JAVA_OPTIONS="-Dfile.encoding=utf-8 -Djava.awt.headless=true"
|
||||
|
||||
CMD ["/deployments/run-java.sh"]
|
||||
CMD ["sh", "-c", "mv /opt/lib/ms-jmeter-core-*.jar /opt/lib/ms-jmeter-core.jar && /deployments/run-java.sh"]
|
||||
|
|
|
@ -17,7 +17,7 @@ pipeline {
|
|||
// sh "yarn install"
|
||||
// sh "cd .."
|
||||
sh "./mvnw clean package --settings ./settings.xml"
|
||||
sh "mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar)"
|
||||
sh "mkdir -p backend/target/dependency && (cd backend/target/dependency; jar -xf ../*.jar) && mkdir -p backend/target/dependency/BOOT-INF/classes/jmeter/lib/junit"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue