Skip to content

Commit e48a04a

Browse files
committed
ci: fixing caching issues
1 parent 98461f6 commit e48a04a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/docker-publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
type=semver,pattern={{major}},value=${{ steps.vars.outputs.version }}
7272
7373
# Build and push the image defined in wireport/Dockerfile
74-
- name: Build & push (inline cache)
74+
- name: Build & push (GHA + registry cache)
7575
uses: docker/build-push-action@v5
7676
with:
7777
context: .
@@ -80,7 +80,11 @@ jobs:
8080
platforms: linux/amd64,linux/arm64
8181
tags: ${{ steps.meta.outputs.tags }}
8282
labels: ${{ steps.meta.outputs.labels }}
83-
cache-from: type=gha
84-
cache-to: type=gha,mode=max
83+
cache-from: |
84+
type=gha,scope=wireport
85+
type=registry,ref=ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport-buildcache:cache
86+
cache-to: |
87+
type=gha,mode=max,scope=wireport
88+
type=registry,ref=ghcr.io/${{ steps.repo_owner.outputs.lowercase }}/wireport-buildcache:cache,mode=max,compression=zstd
8589
build-args: |
8690
BUILDKIT_INLINE_CACHE=1

0 commit comments

Comments
 (0)