Update .gitea/workflows/deploy.yml

This commit is contained in:
admin 2025-03-22 16:35:36 +08:00
parent 863aa8a506
commit 281ac8cce3

View File

@ -11,7 +11,7 @@ jobs:
uses: http://172.23.112.123:3000/actions/checkout@main uses: http://172.23.112.123:3000/actions/checkout@main
- name: List files in the repository - name: List files in the repository
run: | run: |
docker run --rm -v $(pwd):/usr/src/app -v /data/app/maven-repo:/root/.m2/repository -w /usr/src/app maven:3.9.9-eclipse-temurin-17 ls /usr/src/app docker run --rm -v $(pwd):/usr/src/app -v /data/app/maven-repo:/root/.m2/repository -w /usr/src/app maven:3.9.9-eclipse-temurin-17 sh -c "ls -la /usr/src/app && mvn -B package --file pom.xml"
- name: Build with Maven using Docker - name: Build with Maven using Docker
run: | run: |
docker run --rm -v $(pwd):/usr/src/app -v /data/app/maven-repo:/root/.m2/repository -w /usr/src/app maven:3.9.9-eclipse-temurin-17 mvn clean install -Dmaven.test.skip=true docker run --rm -v $(pwd):/usr/src/app -v /data/app/maven-repo:/root/.m2/repository -w /usr/src/app maven:3.9.9-eclipse-temurin-17 mvn clean install -Dmaven.test.skip=true