mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:27:32 +00:00
use cache
This commit is contained in:
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
@@ -17,29 +17,6 @@ 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
|
|
||||||
uses: actions/cache@v3
|
|
||||||
id: pnpm-store-cache
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
pnpm
|
|
||||||
key: pnpm-cache-${{ hashFiles('pnpm-lock.yaml') }}
|
|
||||||
restore-keys: |
|
|
||||||
pnpm-cache-
|
|
||||||
|
|
||||||
- name: inject cache into docker
|
|
||||||
uses: reproducible-containers/buildkit-cache-dance@v3.2.0
|
|
||||||
with:
|
|
||||||
builder: ${{ steps.buildx.outputs.name }}
|
|
||||||
cache-map: |
|
|
||||||
{
|
|
||||||
"pnpm": "/pnpm"
|
|
||||||
}
|
|
||||||
skip-extraction: ${{ steps.pnpm-store-cache.outputs.cache-hit }}
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/bake-action@v6
|
uses: docker/bake-action@v6
|
||||||
with:
|
with:
|
||||||
@@ -50,4 +27,5 @@ jobs:
|
|||||||
set: |
|
set: |
|
||||||
*.cache-from=type=gha
|
*.cache-from=type=gha
|
||||||
*.cache-to=type=gha,mode=max
|
*.cache-to=type=gha,mode=max
|
||||||
|
*.provenance=false
|
||||||
targets: login-lint
|
targets: login-lint
|
||||||
|
Reference in New Issue
Block a user