This commit is contained in:
ls
2024-10-12 00:51:58 +08:00
parent 39985210a4
commit 0b4d56ba60
2 changed files with 5 additions and 2 deletions

View File

@@ -27,7 +27,10 @@ build-job: # This job runs in the build stage, which runs first.
- mvn -s ./settings.xml -DskipTests=true clean install
- echo "Compile complete."
- mkdir -p /home/gitlab-runner/public/physical
- cp physical-launcher/target/physical-launcher-3.7.0.jar /home/gitlab-runner/public/physical
# - cp physical-launcher/target/physical-launcher-3.7.0.jar /home/gitlab-runner/public/physical
artifacts:
paths:
- physical-launcher/target/*.jar

View File

@@ -18,6 +18,6 @@ WORKDIR /app
EXPOSE 8080
#ADD ./src/main/resources/jeecg ./config/jeecg
#COPY --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar physical-launcher-3.7.0.jar
COPY /home/gitlab-runner/public/physical/physical-launcher-3.7.0.jar /app/
COPY ./physical-launcher/target/physical-launcher-3.7.0.jar /app/
CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=prod