diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..443c9cb1 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,19 @@ +name: Maven central workflow + +on: + push: + pull_request: + workflow_dispatch: + +jobs: + maven: + uses: folio-org/.github/.github/workflows/maven.yml@v1 + # Only handle push events from the main branch or tags, to decrease PR noise + if: github.ref_name == github.event.repository.default_branch || github.event_name != 'push' || github.ref_type == 'tag' + secrets: inherit + with: + java-version: '21' + publish-module-descriptor: true + allow-snapshots-release: false + do-sonar-scan: true + do-docker: true diff --git a/Jenkinsfile b/Jenkinsfile-disabled similarity index 100% rename from Jenkinsfile rename to Jenkinsfile-disabled diff --git a/NEWS.md b/NEWS.md index 5a4d24f8..1a91f07c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -20,6 +20,7 @@ * Improve Docker Compose setup for local development ([MODQM-481](https://folio-org.atlassian.net/browse/MODQM-481)) * Restructure documentation in `README.md` ([MODQM-470](https://folio-org.atlassian.net/browse/MODQM-470)) * Refactor code to comply with Checkstyle method length limit (max 25 lines) ([MODQM-488](https://folio-org.atlassian.net/browse/MODQM-488)) +* Use GitHub workflow for CI/CD ([MODQM-499](https://folio-org.atlassian.net/browse/MODQM-499)) * Add "apt upgrade" to Dockerfile, add .dockerignore ### Dependencies