This commit is contained in:
ls
2024-10-12 00:56:11 +08:00
parent 1dac19301a
commit 69f8c7c9d5
2 changed files with 18 additions and 19 deletions

View File

@@ -19,15 +19,15 @@
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- deploy - deploy
build-job: # This job runs in the build stage, which runs first. #build-job: # This job runs in the build stage, which runs first.
stage: deploy # stage: deploy
script: # script:
- echo "Compiling the code..." # - echo "Compiling the code..."
- echo "I'm..." $(whoami) # - echo "I'm..." $(whoami)
- mvn -s ./settings.xml -DskipTests=true clean install # - mvn -s ./settings.xml -DskipTests=true clean install
- echo "Compile complete." # - echo "Compile complete."
- mkdir -p /home/gitlab-runner/public/physical # - 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

View File

@@ -1,12 +1,12 @@
#FROM bellsoft/liberica-openjdk-debian:17 #FROM bellsoft/liberica-openjdk-debian:17
#FROM maven:3.9.8-eclipse-temurin-17 AS build FROM maven:3.9.8-eclipse-temurin-17 AS build
#
#WORKDIR /app WORKDIR /app
#
#COPY settings.xml /root/.m2/settings.xml COPY settings.xml /root/.m2/settings.xml
#
#ADD . /app ADD . /app
#RUN mvn package -DskipTests=true clean install RUN mvn package -DskipTests=true clean install
@@ -17,7 +17,6 @@ WORKDIR /app
EXPOSE 8080 EXPOSE 8080
#ADD ./src/main/resources/jeecg ./config/jeecg #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 --from=build /app/physical-launcher/target/physical-launcher-3.7.0.jar physical-launcher-3.7.0.jar
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 CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar physical-launcher-3.7.0.jar --spring.profiles.active=prod