Skip to content

Upgrade dependencies #369

Upgrade dependencies

Upgrade dependencies #369

Workflow file for this run

name: Build
on:
push:
branches:
- '**'
jobs:
build:
name: Gradle Build
runs-on: ubuntu-latest
strategy:
matrix:
distribution: [ 'temurin' ]
java: [ '21']
env:
DOCKER_IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/devzone
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: 'gradle'
- name: Build with Gradle
run: ./gradlew :application:build
- if: ${{ github.ref == 'refs/heads/main' }}
name: Build and Publish Docker Image
run: |
./gradlew :application:jibDockerBuild
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push $DOCKER_IMAGE_NAME --all-tags
- if: ${{ github.ref == 'refs/heads/main' }}
name: SonarQube Scan
run: ./gradlew :application:sonarqube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}