diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0e10dd9..c3b2e4a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -33,3 +33,9 @@ updates: versions: [ "[7.0,)" ] - dependency-name: org.glassfish:jakarta.el versions: [ "[4.0,)" ] + + - package-ecosystem: "docker" + directory: "/app/src/main/docker/" + schedule: + interval: "daily" + open-pull-requests-limit: 5 diff --git a/.github/workflows/build-project.yml b/.github/workflows/build-project.yml index 7e2ba54..3a82b48 100644 --- a/.github/workflows/build-project.yml +++ b/.github/workflows/build-project.yml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Cache Docker Register uses: actions/cache@v3 with: @@ -48,11 +48,11 @@ jobs: with: output_file: custom_maven_settings.xml servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' - - name: Build Native with Maven + - name: Build with Maven (Pull Request) if: ${{ github.event_name == 'pull_request' }} # See issue https://github.com/com-pas/compas-cim-mapping/issues/218 - # run: ./mvnw -s custom_maven_settings.xml -B -Pnative clean verify - run: ./mvnw -s custom_maven_settings.xml -B clean verify - - name: Build with Maven + # run: ./mvnw -s custom_maven_settings.xml -B -Pnative-image clean verify + run: ./mvnw -s custom_maven_settings.xml -B -Pjvm-image clean verify + - name: Build with Maven (Push) if: ${{ github.event_name == 'push' }} run: ./mvnw -s custom_maven_settings.xml -B clean verify diff --git a/.github/workflows/release-project.yml b/.github/workflows/release-project.yml index 6547753..af71a66 100644 --- a/.github/workflows/release-project.yml +++ b/.github/workflows/release-project.yml @@ -17,9 +17,9 @@ jobs: uses: actions/checkout@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} @@ -57,7 +57,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Deploy with Maven to GitHub Packages and Docker Hub # See issue https://github.com/com-pas/compas-cim-mapping/issues/218 - # run: ./mvnw -B -s custom_maven_settings.xml -Prelease,native clean deploy - run: ./mvnw -B -s custom_maven_settings.xml -Prelease clean deploy + # run: ./mvnw -B -s custom_maven_settings.xml -Pnative-image,release clean deploy + run: ./mvnw -B -s custom_maven_settings.xml -Pjvm-image,release clean deploy env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index d0aa30d..bf017a5 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ SPDX-License-Identifier: Apache-2.0 [![Maven Build Github Action Status]()](https://github.com/com-pas/compas-cim-mapping/actions?query=workflow%3A%22Maven+Build%22) [![REUSE status](https://api.reuse.software/badge/github.com/com-pas/compas-cim-mapping)](https://api.reuse.software/info/github.com/com-pas/compas-cim-mapping) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=com-pas_compas-cim-mapping&metric=alert_status)](https://sonarcloud.io/dashboard?id=com-pas_compas-cim-mapping) -[![LFX Security Status](https://img.shields.io/badge/dynamic/json?color=orange&label=LFX%20Security%20Tool&query=issues%5B%3F%28%40%5B%27repository-name%27%5D%20%3D%3D%20%27compas-cim-mapping%27%29%5D%5B%27high-open-issues%27%5D&suffix=%20High%20open%20issues&url=https%3A%2F%2Fapi.security.lfx.linuxfoundation.org%2Fv1%2Fproject%2Fe8b6fdf9-2686-44c5-bbaa-6965d04ad3e1%2Fissues)](https://security.lfx.linuxfoundation.org/#/e8b6fdf9-2686-44c5-bbaa-6965d04ad3e1/issues) +[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5925/badge)](https://bestpractices.coreinfrastructure.org/projects/5925) [![Slack](https://raw.githubusercontent.com/com-pas/compas-architecture/master/public/LFEnergy-slack.svg)](http://lfenergy.slack.com/) # compas-cim-mapping diff --git a/app/pom.xml b/app/pom.xml index 011aa21..db727cb 100644 --- a/app/pom.xml +++ b/app/pom.xml @@ -136,12 +136,50 @@ SPDX-License-Identifier: Apache-2.0 - native + jvm-image + + true + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + ${surefire-plugin.version} + + + + integration-test + verify + + + + + org.jboss.logmanager.LogManager + + ${maven.home} + + + + + + + + + + + native-image + + + + true + native - true - true + + true @@ -158,8 +196,11 @@ SPDX-License-Identifier: Apache-2.0 - ${project.build.directory}/${project.build.finalName}-runner - org.jboss.logmanager.LogManager + + ${project.build.directory}/${project.build.finalName}-runner + + org.jboss.logmanager.LogManager + ${maven.home} @@ -185,8 +226,10 @@ SPDX-License-Identifier: Apache-2.0 release - + true + + true latest diff --git a/app/src/main/docker/Dockerfile.jvm b/app/src/main/docker/Dockerfile.jvm index fcd9ec4..2fb5f43 100644 --- a/app/src/main/docker/Dockerfile.jvm +++ b/app/src/main/docker/Dockerfile.jvm @@ -21,7 +21,7 @@ # docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-jvm # ### -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4 +FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6 ARG JAVA_PACKAGE=java-11-openjdk-headless ARG RUN_JAVA_VERSION=1.3.8 diff --git a/app/src/main/docker/Dockerfile.native b/app/src/main/docker/Dockerfile.native index 211c60f..f4d420a 100644 --- a/app/src/main/docker/Dockerfile.native +++ b/app/src/main/docker/Dockerfile.native @@ -14,7 +14,7 @@ # docker run -i --rm -p 8080:8080 quarkus/app # ### -FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4 +FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6 WORKDIR /work/ RUN chown 1001 /work \ && chmod "g+rwX" /work \ diff --git a/app/src/test/java/org/lfenergy/compas/cim/mapping/rest/NativeHealthCheckIT.java b/app/src/test/java/org/lfenergy/compas/cim/mapping/rest/HealthCheckIT.java similarity index 83% rename from app/src/test/java/org/lfenergy/compas/cim/mapping/rest/NativeHealthCheckIT.java rename to app/src/test/java/org/lfenergy/compas/cim/mapping/rest/HealthCheckIT.java index 002fc46..adb3034 100644 --- a/app/src/test/java/org/lfenergy/compas/cim/mapping/rest/NativeHealthCheckIT.java +++ b/app/src/test/java/org/lfenergy/compas/cim/mapping/rest/HealthCheckIT.java @@ -7,6 +7,6 @@ import io.quarkus.test.junit.QuarkusIntegrationTest; @QuarkusIntegrationTest -class NativeHealthCheckIT extends HealthCheckTest { +class HealthCheckIT extends HealthCheckTest { // Execute the same tests but in native mode. } \ No newline at end of file diff --git a/pom.xml b/pom.xml index 621ca5d..989b590 100644 --- a/pom.xml +++ b/pom.xml @@ -26,7 +26,7 @@ SPDX-License-Identifier: Apache-2.0 0.9.0 - 2.8.2.Final + 2.9.0.Final 3.0 1.7.36 4.8.0