Disable snyk for now #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & publish to docker hub | |
on: | |
push: | |
branches: | |
- v2.0 | |
schedule: | |
- cron: '30 5 * * *' | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
actions: read | |
checks: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: ${{ github.workspace }} # location for the settings.xml file | |
cache: maven | |
- name: Run the Maven verify phase | |
run: mvn --batch-mode -Dsnyk.skip verify | |
- run: mkdir staging && cp target/*.jar staging | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Package | |
path: staging | |
# - name: Publish Test Report | |
# if: success() || failure() | |
# uses: ScaCap/[email protected] | |
# - uses: dorny/[email protected] | |
# if: success() || failure() | |
# with: | |
# name: Junit Test Report | |
# path: 'target/surefire-reports/*.xml' | |
# reporter: java-junit | |
# fail-on-error: true | |
# | |
# - name: Publish container image to Docker Hub | |
# id: publish | |
# run: DOCKERHUB_USERNAME=${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_PASSWORD=${{ secrets.DOCKERHUB_PASSWORD }} mvn --batch-mode clean compile jib:build |