diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5f11930..e78d37f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,8 +13,13 @@ jobs: - name: Checkout code uses: actions/checkout@v3 + - name: Set up JDK 22 + uses: actions/setup-java@v3 + with: + java-version: '22' + - name: Build JAR - run: ./mvnw clean package -DskipTests + run: ./mvnw clean package -DskipTests # Adjust this based on your build tool - name: Upload JAR to server run: scp -i ${{ secrets.SSH_KEY }} target/munera-1.0-SNAPSHOT.jar ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera @@ -26,9 +31,8 @@ jobs: run: scp -i ${{ secrets.SSH_KEY }} docker-compose.yml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/${{ secrets.SSH_USER }}/munera - name: Deploy on server - run: | - ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' - cd /home/${{ secrets.SSH_USER }}/munera - docker-compose down - docker-compose up --build -d - EOF \ No newline at end of file + run: ssh -i ${{ secrets.SSH_KEY }} ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF' + cd /home/${{ secrets.SSH_USER }}/munera + docker-compose down + docker-compose up --build -d + EOF diff --git a/src/main/bundles/prod.bundle b/src/main/bundles/prod.bundle new file mode 100644 index 0000000..f805792 Binary files /dev/null and b/src/main/bundles/prod.bundle differ