ci: use Maven wrapper instead of mvn to fix command not found on Gitea runner
Build and Deploy Spring Boot Server / build (push) Failing after 4m43s

This commit is contained in:
2026-05-10 21:40:25 +02:00
parent b8e2c9114d
commit 4a04c85fe8
+3 -3
View File
@@ -14,7 +14,7 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
# 2. Set up Java and Maven (includes Maven, no separate install needed) # 2. Set up Java (Maven wrapper handles Maven version automatically)
- name: Set up JDK (Eclipse Temurin) - name: Set up JDK (Eclipse Temurin)
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
@@ -22,9 +22,9 @@ jobs:
java-version: "17" java-version: "17"
cache: maven cache: maven
# 3. Build the Spring Boot application # 3. Build the Spring Boot application using the Maven wrapper
- name: Build Spring Boot Application - name: Build Spring Boot Application
run: mvn clean package -DskipTests run: ./mvnw clean package -DskipTests
# 4. Set up Docker Buildx (enables layer caching) # 4. Set up Docker Buildx (enables layer caching)
- name: Set up Docker Buildx - name: Set up Docker Buildx