use unique match key for each job

This commit is contained in:
RustamGimadiev 2021-02-19 12:09:34 +03:00
parent ae08149726
commit 43cadd0075
3 changed files with 5 additions and 3 deletions

View file

@ -12,8 +12,9 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
key: ${{ runner.os }}-maven-all-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-all-
${{ runner.os }}-maven-
- uses: actions/checkout@v2
- name: Set up JDK 1.13

View file

@ -48,8 +48,9 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
key: ${{ runner.os }}-maven-contract-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-contract-
${{ runner.os }}-maven-
- uses: actions/checkout@v2
- name: Set up JDK 1.13

View file

@ -74,4 +74,4 @@ jobs:
build-args: |
JAR_FILE=kafka-ui-api-${{ steps.prep.outputs.version }}.jar
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache