mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:27:33 +00:00
use cache
This commit is contained in:
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@@ -10,8 +10,6 @@ jobs:
|
|||||||
contents: "read"
|
contents: "read"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set up persistent Buildx builder
|
- name: Set up persistent Buildx builder
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
@@ -19,12 +17,19 @@ jobs:
|
|||||||
install: true
|
install: true
|
||||||
driver: docker-container
|
driver: docker-container
|
||||||
use: true
|
use: true
|
||||||
|
- uses: docker/metadata-action@v5
|
||||||
|
id: meta
|
||||||
|
with:
|
||||||
|
images: Build
|
||||||
- name: Cache
|
- name: Cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
id: pnpm-store-cache
|
id: pnpm-store-cache
|
||||||
with:
|
with:
|
||||||
path: pnpm-store
|
path: |
|
||||||
key: cache-${{ hashFiles('pnpm-lock.yaml') }}
|
pnpm
|
||||||
|
key: pnpm-cache-${{ hashFiles('pnpm-lock.yaml') }}
|
||||||
|
restore-keys: |
|
||||||
|
pnpm-cache-
|
||||||
|
|
||||||
- name: inject cache into docker
|
- name: inject cache into docker
|
||||||
uses: reproducible-containers/buildkit-cache-dance@v3.2.0
|
uses: reproducible-containers/buildkit-cache-dance@v3.2.0
|
||||||
@@ -32,7 +37,7 @@ jobs:
|
|||||||
builder: ${{ steps.buildx.outputs.name }}
|
builder: ${{ steps.buildx.outputs.name }}
|
||||||
cache-map: |
|
cache-map: |
|
||||||
{
|
{
|
||||||
"pnpm-store": "/pnpm/store"
|
"pnpm": "/pnpm"
|
||||||
}
|
}
|
||||||
skip-extraction: ${{ steps.pnpm-store-cache.outputs.cache-hit }}
|
skip-extraction: ${{ steps.pnpm-store-cache.outputs.cache-hit }}
|
||||||
- name: Build
|
- name: Build
|
||||||
|
Reference in New Issue
Block a user