init-cicd-build
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m10s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1m10s
This commit is contained in:
parent
5e57c692ca
commit
38ec1a6a71
@ -32,11 +32,7 @@ jobs:
|
||||
- name: 编译
|
||||
run: chmod +x ./mvnw && ./mvnw -s settings.xml -B -Ptrydo -Phuawei clean install -U -DskipTests -Pprod
|
||||
|
||||
- name: 打包
|
||||
run: ./mvnw spring-boot:build-image-no-fork
|
||||
- run: mkdir -p target/dependency && (cd target/dependency; jar -xf ../*.jar)
|
||||
- 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
9
Dockerfile
Normal 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user