mirror of
https://github.com/docker/docs.git
synced 2026-03-27 06:18:55 +07:00
config: use param for latest cache action version
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -168,7 +168,7 @@ jobs:
|
||||
|
||||
# 3. Cache Docker layers
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
@@ -177,7 +177,7 @@ jobs:
|
||||
|
||||
# 4. Cache npm dependencies
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -181,7 +181,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
|
||||
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
@@ -226,7 +226,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
|
||||
@@ -168,7 +168,7 @@ jobs:
|
||||
|
||||
# 3. Cache Docker layers
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
@@ -176,7 +176,7 @@ jobs:
|
||||
|
||||
# 4. Cache npm dependencies
|
||||
- name: Cache npm dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -168,7 +168,7 @@ jobs:
|
||||
|
||||
# 3. Cache Docker layers
|
||||
- name: Cache Docker Layers
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
@@ -177,7 +177,7 @@ jobs:
|
||||
|
||||
# 4. Cache npm dependencies
|
||||
- name: Cache npm Dependencies
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
|
||||
|
||||
@@ -246,7 +246,7 @@ jobs:
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
|
||||
- name: Go Build Cache for Docker
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: go-build-cache
|
||||
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
|
||||
@@ -303,7 +303,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@{{% param "cache_action_version" %}}
|
||||
with:
|
||||
path: ${{ runner.temp }}/.buildx-cache
|
||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||
|
||||
Reference in New Issue
Block a user