Skip to content

Commit

Permalink
[Build] Switch to Gradle wrapper for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Schaka committed Oct 18, 2024
1 parent 486f033 commit d641583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Gradle for a non-wrapper project
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: 8.10.2

- name: Build JVM OCI image
run: gradle jib -Djib.serialize=true # https://github.com/GoogleContainerTools/jib/issues/4301
run: ./gradlew jib -Djib.serialize=true # https://github.com/GoogleContainerTools/jib/issues/4301
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Build Native OCI Image
run: gradle bootBuildImage --publishImage --imagePlatform linux/amd64
run: ./gradlew bootBuildImage --publishImage --imagePlatform linux/amd64
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -102,7 +102,7 @@ jobs:
platforms: 'linux/amd64,linux/arm64'

- name: Build Native ARM64 OCI Image
run: gradle bootBuildImage --publishImage --imagePlatform linux/arm64
run: ./gradlew bootBuildImage --publishImage --imagePlatform linux/arm64
env:
USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d641583

Please sign in to comment.