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
Some checks failed
Docker Cloud Build / Build & Publish Image (push) Failing after 10m21s
This commit is contained in:
parent
adf738bc33
commit
1ac4c5e1db
1 changed files with 2 additions and 0 deletions
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
|
|
@ -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) || '' }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue