From 0b4d56ba602cd9b9f0cac3a86b36a8816ff92bd6 Mon Sep 17 00:00:00 2001 From: ls Date: Sat, 12 Oct 2024 00:51:58 +0800 Subject: [PATCH] update --- .gitlab-ci.yml | 5 ++++- Dockerfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae96902..af162f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 3328aba..7307c80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file