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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-java17
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# 1. Checkout the code
|
# 1. Checkout the code
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# 2. Set up Java (Maven wrapper handles Maven version automatically)
|
# 2. Build the Spring Boot application using the Maven wrapper (Java 17 pre-installed in runner image)
|
||||||
- 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
|
|
||||||
- name: Build Spring Boot Application
|
- name: Build Spring Boot Application
|
||||||
run: ./mvnw clean package -DskipTests
|
run: ./mvnw clean package -DskipTests
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user