ci: add BuildKit registry cache (mode=max) to speed up Docker builds
Some checks failed
Docker Cloud Build / Build & Publish Image (push) Failing after 10m21s

This commit is contained in:
xtcnet 2026-03-19 00:00:12 +07:00
parent adf738bc33
commit 1ac4c5e1db

View file

@ -89,3 +89,5 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache
cache-to: ${{ github.event_name != 'pull_request' && format('type=registry,ref={0}/{1}:buildcache,mode=max', env.REGISTRY, env.IMAGE_NAME) || '' }}