diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a0b611e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,40 @@ +name: CI/CD Pipeline + +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + push: + branches: + - main + +jobs: + build: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-build-maven.yml@main + secrets: inherit + + matrix: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-build-matrix.yml@main + with: + build-tool: maven + secrets: inherit + + owasp: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-owasp-check.yml@main + with: + build-tool: maven + secrets: inherit + + sbom: + if: github.event_name == 'pull_request' + uses: ahincho/nova-devops/.github/workflows/reusable-sbom.yml@main + with: + build-tool: maven + secrets: inherit diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ec01c9e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: Publish Parent POM + +# Manually triggered publish for nova-spring-boot-parent. The release-please +# pipeline has not been wired to this repo yet (it relies on tag-driven +# publish-on-tag flow used by other repos; tracked separately). This workflow +# supports manual 1.0.x bumps in the meantime so Gradle/Maven consumers +# (e.g. instances/ms-course, instances/ms-forum) can resolve the parent. +on: + workflow_dispatch: + inputs: + dry-run: + description: 'Dry-run: deploy to local file:// repo for verification' + required: false + type: string + default: 'false' + +jobs: + publish: + uses: ahincho/nova-devops/.github/workflows/reusable-publish-maven.yml@main + with: + dry-run: ${{ inputs.dry-run || 'false' }} + secrets: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/pom.xml b/pom.xml index 53bb8e6..9c4a433 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ pe.edu.nova.java nova-spring-boot-parent - 0.1.0-SNAPSHOT + 1.0.0 pom Nova Platform Spring Boot Parent @@ -19,14 +19,32 @@ ${java.version} UTF-8 - 0.1.0-SNAPSHOT - 0.1.0-SNAPSHOT + 1.0.0 + 1.0.1 3.14.0 3.5.3 4.0.5 + + + + nova-packages-read-bom + https://maven.pkg.github.com/ahincho/nova-bom + + + nova-packages-read-starter + https://maven.pkg.github.com/ahincho/nova-java-spring-boot-starter + + + @@ -93,7 +111,7 @@ github - https://maven.pkg.github.com/OWNER/nova-spring-boot-parent + https://maven.pkg.github.com/ahincho/nova-java-spring-boot-parent