chore: use github for docker build layer caches (#10346)

# Which Problems Are Solved

Building the login container in the pipeline without build layer caches
takes about 20 minutes.

# How the Problems Are Solved

We use cache-from and cache-to arguments to use the GitHub cache API.
Compare 1st and 2nd run [of this PRs
pipeline](https://github.com/zitadel/zitadel/actions/runs/16590808510/job/46927893304)

# Additional Context

- Follows up on #10343
This commit is contained in:
Elio Bischof
2025-07-29 12:45:01 +02:00
committed by Stefan Benz
parent ec1289356f
commit 17e68d40cf
2 changed files with 38 additions and 21 deletions

View File

@@ -59,6 +59,9 @@ jobs:
provenance: true
sbom: true
targets: login-standalone
set: |
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
files: |
./apps/login/docker-bake.hcl
./apps/login/docker-bake-release.hcl