chore(deps): update dependency org.sonarsource.scanner.maven:sonar-ma… #601
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: aws-dynamodb-project | |
on: | |
push: | |
paths: | |
- "aws-dynamodb-project/**" | |
branches: [main] | |
pull_request: | |
paths: | |
- "aws-dynamodb-project/**" | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: "aws-dynamodb-project" | |
strategy: | |
matrix: | |
distribution: [ 'temurin' ] | |
java: [ '17' ] | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Setup Java ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: ${{ matrix.distribution }} | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw clean verify | |
- if: ${{ github.ref == 'refs/heads/main' }} | |
name: Build and Publish Docker Image | |
run: | | |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} | |
./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=${{ secrets.DOCKER_USERNAME }}/aws-dynamodb-project-${{ matrix.java }} | |
docker push ${{ secrets.DOCKER_USERNAME }}/aws-dynamodb-project-${{ matrix.java }} |