Skip to content

Commit 0d0a18e

Browse files
committed
Use GitHub Actions cache for Docker build caching
1 parent 66c82a3 commit 0d0a18e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
type=raw,value=latest,enable={{is_default_branch}}
7070
type=ref,event=tag
7171
- name: Build and push Docker image
72-
uses: docker/build-push-action@v5
72+
uses: docker/build-push-action@v6
7373
with:
7474
file: Dockerfile
7575
context: .
@@ -80,8 +80,8 @@ jobs:
8080
platforms: linux/amd64,linux/arm64
8181
tags: ${{ steps.meta.outputs.tags }}
8282
labels: ${{ steps.meta.outputs.labels }}
83-
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.CACHE_PATH }}:cache
84-
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.CACHE_PATH }}:cache,mode=max
83+
cache-from: type=gha
84+
cache-to: type=gha,mode=max
8585

8686
build:
8787
needs: [test, setup]

0 commit comments

Comments
 (0)