mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
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:
parent
aadedb698a
commit
b8f6910fe2
2 changed files with 2 additions and 4 deletions
4
.github/actions/setup-node/action.yml
vendored
4
.github/actions/setup-node/action.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue