diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index 88c8915..020e8e0 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -1,5 +1,5 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Gitea Actions +run-name: ${{ gitea.actor }} on: workflow_dispatch: @@ -12,12 +12,11 @@ jobs: - name: List files in the repository run: | ls ${{ gitea.workspace }} - - name: Set up Java version - uses: http://172.23.112.123:3000/actions/setup-java@main - with: - java-version: '17' - distribution: 'temurin' - cache: 'maven' - - - name: Build with Maven - run: mvn clean install \ No newline at end of file + - name: Build with Maven using Docker + 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 \ No newline at end of file