Skip to content

Enhanced the condition of throwing toomanyresults exception #251

Enhanced the condition of throwing toomanyresults exception

Enhanced the condition of throwing toomanyresults exception #251

Workflow file for this run

name: CI/CD
on:
pull_request:
branches: main
types: [opened, synchronize, reopened]
push:
branches: main
paths-ignore: [ "README.md", "doc/**" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin' #Eclipse Temurin
- uses: oneteme/automation-scripts/.github/actions/mvn-scan-project@main
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
deploy:
if: github.ref_name == 'main' #!PR
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin' #Eclipse Temurin
- run: mvn --batch-mode --no-transfer-progress -Ppg clean package
- uses: oneteme/automation-scripts/.github/actions/mvn-project-version@main
id: prj_ver
- uses: docker/#-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
#- uses: docker/setup-qemu-action@v3.2.0 #multiple architectures ARM, x86_64, etc.
#- uses: docker/setup-buildx-action@v3.8.0
- uses: docker/build-push-action@v6.10.0
with:
context: .
tags: "oneteme/${{ github.event.repository.name }}:latest"
push: true
outputs:
version: ${{ steps.prj_ver.outputs.version }}
release:
needs: deploy
runs-on: ubuntu-latest
steps:
- uses: oneteme/automation-scripts/.github/actions/github-release-notes@main
with:
version: ${{ needs.deploy.outputs.version }}
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#pages