From 441b47f018bda770218327234969939cea76547b Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Wed, 12 Jun 2024 16:12:18 +0200 Subject: [PATCH] Update setup-gradle invocation https://github.com/gradle/actions/blob/main/docs/deprecation-upgrade-guide.md#using-the-action-to-execute-gradle-via-the-arguments-parameter-is-deprecated --- .github/workflows/build-push.yml | 8 ++++---- .github/workflows/build.yml | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index 358f94a..3b75fd8 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -18,11 +18,11 @@ jobs: uses: ASzc/change-string-case-action@v6 with: string: ${{ github.repository }}/cmcc-operator - - name: push + - name: setup gradle uses: gradle/actions/setup-gradle@v3 - with: - arguments: > - build test jib + - name: build nad push + run: > + ./gradlew build test jib -Djib.to.image=ghcr.io/${{ steps.repository.outputs.lowercase }}:${{github.ref_name}} -Djib.to.tags=${{github.ref_name}},latest -Djib.to.auth.username=${{ github.actor }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38bcefa..10d35a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,8 +17,8 @@ jobs: java-version: 17 distribution: adopt cache: gradle - - name: build + - name: setup gradle uses: gradle/actions/setup-gradle@v3 - with: - arguments: build test --scan + - name: build + run: ./gradlew build test --scan