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

View file

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