ci(caching): use cache-key without hash and docker cache without max setting

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2023-02-18 15:22:21 +01:00
parent aadedb698a
commit b8f6910fe2
2 changed files with 2 additions and 4 deletions

View file

@ -23,9 +23,7 @@ runs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-${{ inputs.NODEJS_VERSION }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ inputs.NODEJS_VERSION }}
key: ${{ runner.os }}-node${{ inputs.NODEJS_VERSION }}-yarn
- name: Set up NodeJS
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0

View file

@ -58,7 +58,7 @@ jobs:
tags: ${{ steps.meta-data.outputs.tags }}
labels: ${{ steps.meta-data.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha
context: .
build-args: |
BUILD_VERSION=${{ github.event.head_commit.id }}