Skip to content

Commit

Permalink
inject maven cache
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Apr 26, 2024
1 parent d06b5a5 commit 6856114
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish-jvm-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Restore cache for local Maven repository
id: cache
uses: actions/cache@v4
with:
path: maven-repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}

- name: inject maven-cache into docker
uses: reproducible-containers/[email protected]
with:
cache-map: |
{
"maven-repository": "/root/.m2",
}
skip-extraction: ${{ steps.cache.outputs.cache-hit }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down

0 comments on commit 6856114

Please sign in to comment.