mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:27:32 +00:00
use cache
This commit is contained in:
15
.github/workflows/test.yml
vendored
15
.github/workflows/test.yml
vendored
@@ -10,16 +10,11 @@ jobs:
|
||||
contents: "read"
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
- name: Set up persistent Buildx builder
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Restore GHA Build Cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: buildx-${{ github.ref_name }}
|
||||
restore-keys: |
|
||||
buildx-
|
||||
- name: Build via Make (docker-bake.hcl uses type=gha)
|
||||
env:
|
||||
BUILDKIT_CACHE_DIR: /tmp/.buildx-cache
|
||||
install: true
|
||||
use: true
|
||||
- run: docker buildx du -v
|
||||
- name: Build via Make
|
||||
run: make login-lint
|
||||
|
2
Makefile
2
Makefile
@@ -33,7 +33,7 @@ login-help:
|
||||
@echo " clean-cache-keys - Remove all cache keys."
|
||||
|
||||
login-lint-build:
|
||||
docker buildx bake login-lint
|
||||
docker buildx bake --provenance=false --pull login-lint
|
||||
|
||||
login-lint-run:
|
||||
docker run --rm $(LOGIN_LINT_TAG) lint
|
||||
|
@@ -1,6 +1,6 @@
|
||||
target "defaults" {
|
||||
cache-from = ["type=gha,scope=image"]
|
||||
cache-to = ["type=gha,scope=image,mode=max"]
|
||||
cache-to = ["type=gha,scope=image,ignore-error=true,mode=max"]
|
||||
}
|
||||
|
||||
target "login-pnpm" {
|
||||
|
Reference in New Issue
Block a user