diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c10f71b..c0b568b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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