use cache

This commit is contained in:
Elio Bischof
2025-06-16 20:29:24 +02:00
parent 1531ed0c7d
commit 305cf7a58b
3 changed files with 5 additions and 11 deletions

View File

@@ -13,15 +13,10 @@ jobs:
- name: Set up persistent Buildx builder
uses: docker/setup-buildx-action@v3
with:
driver: docker-container
driver-opts: image=moby/buildkit:latest
install: true
use: true
name: gha-builder
cleanup: false
- run: docker buildx du --builder gha-builder
- run: docker buildx du
- name: Build via Make
run: make login-lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: docker buildx du --builder gha-builder
- run: docker buildx du

View File

@@ -33,7 +33,7 @@ login-help:
@echo " clean-cache-keys - Remove all cache keys."
login-lint-build:
docker buildx bake --builder gha-builder --provenance=false --pull login-lint
docker buildx bake --builder default --provenance=false --pull login-lint
login-lint-run:
docker run --rm $(LOGIN_LINT_TAG) lint

View File

@@ -39,10 +39,9 @@ target "login-lint" {
tags = ["${LOGIN_LINT_TAG}"]
output = [
"type=docker",
"type=cacheonly"
]
cache-from = ["type=gha,scope=image"]
cache-to = ["type=gha,scope=image,ignore-error=true,mode=max"]
cache-from = ["type=gha"]
cache-to = ["type=gha,ignore-error=true,mode=max"]
}
target "login-client" {