Skip to content

Commit

Permalink
Make the main branch cache available to the docker-build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Oct 29, 2024
1 parent a419d9c commit eb81e30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
key: ${{ runner.os }}-m2-${ github.ref }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-${ github.ref }}
${{ runner.os }}-m2-main
- name: Run Maven Build
run: mvn clean package -Pproduction
Expand Down

0 comments on commit eb81e30

Please sign in to comment.