Skip to content

Commit

Permalink
Use gradle 8.7
Browse files Browse the repository at this point in the history
Optimize workflows
  • Loading branch information
BolZer committed Jun 11, 2024
1 parent 9430e9a commit 66a8b5f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ jobs:
java-version: '20'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.7

- name: Test Gradle Build
run: ./gradlew build --dry-run
run: gradle build --dry-run
7 changes: 6 additions & 1 deletion .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ jobs:
java-version: '20'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.7

- name: Check code style
run: ./gradlew spotlessCheck
run: gradle spotlessCheck
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ jobs:
java-version: '20'
cache: 'gradle'

- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.7

- name: Create new buildx builder
run: docker buildx create --name custom_builder --use

- name: Build application
run: ./gradlew build -Dquarkus.package.jar.type=uber-jar
run: gradle build -Dquarkus.package.jar.type=uber-jar

- name: Build images
run: docker buildx build --platform=linux/amd64 --platform=linux/arm64 -t easybill/peppol-bis-billing-validator:${{github.ref_name}} -t easybill/peppol-bis-billing-validator:latest . --push

0 comments on commit 66a8b5f

Please sign in to comment.