ci: use ubuntu-java17 runner image, remove setup-java step
Build and Deploy Spring Boot Server / build (push) Failing after 2m22s

This commit is contained in:
2026-05-10 22:08:23 +02:00
parent 0e63b6e4e6
commit b221d07b48
+2 -10
View File
@@ -7,22 +7,14 @@ on:
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-java17
steps:
# 1. Checkout the code
- name: Checkout code
uses: actions/checkout@v4
# 2. Set up Java (Maven wrapper handles Maven version automatically)
- name: Set up JDK (Eclipse Temurin)
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
cache: maven
# 3. Build the Spring Boot application using the Maven wrapper
# 2. Build the Spring Boot application using the Maven wrapper (Java 17 pre-installed in runner image)
- name: Build Spring Boot Application
run: ./mvnw clean package -DskipTests