chore(ci): switch Docker build cache from registry to local
Use local caching for Docker builds in CI pipeline to simplify configuration and improve build performance by storing cache in /tmp/.buildx-cache instead of pushing to registry.
This commit is contained in:
4
.github/workflows/ci-cd.yml
vendored
4
.github/workflows/ci-cd.yml
vendored
@@ -70,7 +70,7 @@ jobs:
|
||||
--platform linux/amd64 \
|
||||
--tag "git.yejayekhoob.com/db123/auth-proxy:${{ github.sha }}" \
|
||||
--tag "git.yejayekhoob.com/db123/auth-proxy:latest" \
|
||||
--cache-from=type=registry,ref=git.yejayekhoob.com/db123/auth-proxy:cache \
|
||||
--cache-to=type=registry,ref=git.yejayekhoob.com/db123/auth-proxy:cache,mode=max \
|
||||
--cache-from=type=local,dest=/tmp/.buildx-cache \
|
||||
--cache-to=type=local,dest=/tmp/.buildx-cache \
|
||||
--push \
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user