Skip to content

Commit

Permalink
Use the same maven cache when building native image as other builds
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Apr 27, 2024
1 parent 60b3091 commit 15053b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/publish-native-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ jobs:
distribution: 'oracle'
java-version: '21'
check-latest: false
cache: 'maven'

- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build application with Buildpacks
run: |
Expand Down

0 comments on commit 15053b2

Please sign in to comment.