From b8f6910fe2fa7b7aa6a1383009f4f9bef24360b1 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sat, 18 Feb 2023 15:22:21 +0100 Subject: [PATCH] ci(caching): use cache-key without hash and docker cache without max setting Signed-off-by: Erik Michelson --- .github/actions/setup-node/action.yml | 4 +--- .github/workflows/docker.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 048547b45..399eb0e30 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -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 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5e43ca77e..bf2346364 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 }}