Skip to content

Commit e1a8e1c

Browse files
committed
fix(ci): switch Docker build cache from local to GHA backend
Local cache (type=local) doesn't persist across GitHub Actions runs. Switch to GHA cache backend for actual cache hits.
1 parent 13f7512 commit e1a8e1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/push-ghcr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
-t $REPOSITORY_URI:latest \
5656
-t $REPOSITORY_URI:$COMMIT \
5757
-t $REPOSITORY_URI:$VERSION \
58-
--cache-from=type=local,src=/tmp/.buildx-cache \
59-
--cache-to=type=local,dest=/tmp/.buildx-cache \
58+
--cache-from type=gha \
59+
--cache-to type=gha,mode=max \
6060
--push \
6161
-f ./Dockerfile \
6262
.

0 commit comments

Comments
 (0)