Update dependency org.springdoc:springdoc-openapi-ui to v1.8.0 #124
Workflow file for this run
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: CI Build | |
on: | |
push: | |
branches: | |
- '!gradle' | |
- '**' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
distribution: [ 'zulu' ] | |
java: [ '21' ] | |
env: | |
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/spring-boot-todolist | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java ${{ matrix.java }} (${{ matrix.distribution }}) | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: ${{ matrix.distribution }} | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw -ntp verify | |
- if: ${{ github.ref == 'refs/heads/main' }} | |
name: SonarCloud Scan | |
run: ./mvnw compile sonar:sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- if: ${{ github.ref == 'refs/heads/main' }} | |
name: Build and Publish Docker Image | |
run: | | |
./mvnw -DskipTests -Dimage=$DOCKER_IMAGE_NAME jib:dockerBuild | |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
docker push $DOCKER_IMAGE_NAME |