initial Release request #1

Merged
Cedric merged 34 commits from dev into main 2025-01-12 10:46:30 +01:00
2 changed files with 2 additions and 47 deletions
Showing only changes of commit 38bb0f131c - Show all commits

View File

@@ -18,6 +18,7 @@ jobs:
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: "oracle"
java-version: "17" java-version: "17"
- name: Verify Maven installation - name: Verify Maven installation
@@ -38,7 +39,7 @@ jobs:
# 5. Build the Docker image using docker-compose # 5. Build the Docker image using docker-compose
- name: Build and Package Docker Image - name: Build and Package Docker Image
run: | run: |
docker-compose build docker build -t tea.zendric.de/zendric/XpenselyServer:1.0.0 .
# 6. Start the application with dependencies # 6. Start the application with dependencies
- name: Start the Docker Compose Application - name: Start the Docker Compose Application

View File

@@ -1,46 +0,0 @@
name: Build and Deploy Spring Boot Server
on:
push:
branches:
- dev
jobs:
build:
runs-on: self-hosted
steps:
# 1. Checkout the code
- name: Checkout code
uses: actions/checkout@v2
# 2. Set up Java and Maven
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: "17"
- name: Verify Maven installation
run: |
mvn -version
# 3. Build the Spring Boot application
- name: Build Spring Boot Application
run: |
mvn clean package -DskipTests
# 4. Set up Docker
- name: Set up Docker
run: |
docker --version
docker-compose --version
# 5. Build the Docker image using docker-compose
- name: Build and Package Docker Image
run: |
docker-compose build
# 6. Start the application with dependencies
- name: Start the Docker Compose Application
run: |
docker-compose up -d