init-cicd-build
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m10s

This commit is contained in:
TangHuan 2025-04-02 13:46:07 +08:00
parent 5e57c692ca
commit 38ec1a6a71
2 changed files with 12 additions and 7 deletions

View File

@ -32,11 +32,7 @@ jobs:
- name: 编译 - name: 编译
run: chmod +x ./mvnw && ./mvnw -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod run: chmod +x ./mvnw && ./mvnw -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
- name: 打包 - run: mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
run: ./mvnw spring-boot:build-image-no-fork - name: 打包Docker
run: docker build -t ccr.ccs.tencentyun.com/jqyt/biz-dev:1.0.0
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
- run: echo "🍏 This job's status is ${{ job.status }}."

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM openjdk:17
RUN addgroup -S spring && adduser -S spring -G spring
USER spring:spring
ARG DEPENDENCY=target/dependency
COPY ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY ${DEPENDENCY}/META-INF /app/META-INF
COPY ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","net.thday.cesidemococd.CesiDemoCocdApplication"]