fix maven
Some checks failed
Build and Deploy Spring Boot Server / build (push) Has been cancelled

This commit is contained in:
2025-01-11 00:27:25 +01:00
parent 38bb0f131c
commit 96b9989a2a

View File

@@ -15,33 +15,32 @@ jobs:
uses: actions/checkout@v2
# 2. Set up Java and Maven
- name: Set up JDK
- name: Set up JDK and Maven
uses: actions/setup-java@v3
with:
distribution: "oracle"
java-version: "17"
cache: maven
- name: Verify Maven installation
# 3. Verify Maven installation
- name: Install Maven
run: |
sudo apt-get update
sudo apt-get install -y maven
mvn -version
# 3. Build the Spring Boot application
# 4. Build the Spring Boot application
- name: Build Spring Boot Application
run: |
mvn clean package -DskipTests
# 4. Set up Docker
# 5. Set up Docker
- name: Set up Docker
run: |
docker --version
docker-compose --version
# 5. Build the Docker image using docker-compose
# 6. Build the Docker image
- name: Build and Package Docker Image
run: |
docker build -t tea.zendric.de/zendric/XpenselyServer:1.0.0 .
# 6. Start the application with dependencies
- name: Start the Docker Compose Application
run: |
docker-compose up -d