mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -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
|
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
|
||||||
|
|
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue