Update .gitea/workflows/deploy.yml

This commit is contained in:
admin 2025-03-22 16:39:36 +08:00
parent 281ac8cce3
commit 0eb35f202e

View File

@ -11,10 +11,10 @@ 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 sh -c "ls -la /usr/src/app && mvn -B package --file pom.xml" docker run --rm -v ${{ gitea.workspace }}:/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 ${{ gitea.workspace }}:/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
- run: - run:
ls ls
- name: Configure SSH key - name: Configure SSH key