From 890c4ddeaaa5a4d9201d4645f2debfc688616e9f Mon Sep 17 00:00:00 2001 From: Schaka <2223171+Schaka@users.noreply.github.com> Date: Sun, 15 Sep 2024 20:42:46 +0200 Subject: [PATCH] [Build] Use Gradle v4 action --- .github/workflows/gradle.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 492c2c0..fed25e4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,31 +28,27 @@ jobs: java-version: '21' distribution: 'temurin' - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 - - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build with Gradle - uses: gradle/actions/setup-gradle@v3 + - name: Setup Gradle for a non-wrapper project + uses: gradle/actions/setup-gradle@v4 with: gradle-version: 8.9 - arguments: jib + + - name: Build JVM OCI image + run: gradle jib env: USERNAME: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build Native Image - uses: gradle/actions/setup-gradle@v3 - with: - gradle-version: 8.9 - arguments: "bootBuildImage --publishImage" + - name: Build Native OCI Image + run: bootBuildImage --publishImage env: USERNAME: ${{ github.actor }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}