Update springdoc-openapi.version to v2.8.4 #65
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: BookStore Webapp | |
on: | |
push: | |
paths: | |
- bookstore-webapp/** | |
branches: | |
- 'main' | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./bookstore-webapp | |
DOCKER_IMAGE_NAME: ${{ secrets.DOCKERHUB_USERNAME }}/bookstore-webapp | |
defaults: | |
run: | |
working-directory: ${{ env.working-directory }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Make Maven wrapper executable | |
run: chmod +x mvnw | |
- name: Build with Maven | |
run: ./mvnw -ntp verify | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Publish Docker Image | |
run: | | |
./mvnw spring-boot:build-image -DskipTests | |
echo "Pushing the image $DOCKER_IMAGE_NAME to Docker Hub..." | |
docker push $DOCKER_IMAGE_NAME |