diff --git a/.github/workflows/catalog-service.yml b/.github/workflows/catalog-service.yml index a5f67e9d..e2bfa214 100644 --- a/.github/workflows/catalog-service.yml +++ b/.github/workflows/catalog-service.yml @@ -42,7 +42,7 @@ jobs: native-image --version - name: Build and analyze - run: ./mvnw clean verify + run: ./mvnw clean -Pnative verify - if: ${{ github.ref == 'refs/heads/main' }} name: Build Image and push to docker @@ -50,4 +50,4 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any DOCKER_PASSCODE: ${{secrets.DOCKER_PASSCODE}} DOC_USERNAME: ${{secrets.DOCKER_USERNAME}} - run: ./mvnw spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=${DOC_USERNAME} + run: ./mvnw -Pnative spring-boot:build-image -DskipTests -DCI_DOCKER_PASSWORD=${DOCKER_PASSCODE} -DCI_DOCKER_USERNAME=${DOC_USERNAME} diff --git a/catalog-service/pom.xml b/catalog-service/pom.xml index db5cfbdb..de0fee36 100644 --- a/catalog-service/pom.xml +++ b/catalog-service/pom.xml @@ -255,6 +255,13 @@ + + org.graalvm.buildtools + native-maven-plugin + + com.example.catalogservice.CatalogServiceApplication + + org.springframework.boot spring-boot-maven-plugin diff --git a/catalog-service/src/main/resources/application.properties b/catalog-service/src/main/resources/application.properties index 4f079a7b..b273d5d0 100644 --- a/catalog-service/src/main/resources/application.properties +++ b/catalog-service/src/main/resources/application.properties @@ -29,4 +29,7 @@ eureka.client.webclient.enabled=true # Enable starting tc in parallel spring.testcontainers.beans.startup=parallel -spring.threads.virtual.enabled=true \ No newline at end of file +spring.threads.virtual.enabled=true + +# Only for building nativeImage +spring.cloud.config.import-check.enabled=false \ No newline at end of file