ci: use ubuntu-java17 runner image, remove setup-java step
Build and Deploy Spring Boot Server / build (push) Failing after 2m22s
Build and Deploy Spring Boot Server / build (push) Failing after 2m22s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user