Skip to content

Commit 733c6b2

Browse files
author
root
committed
fix: simplify cache configuration for GitHub Actions
Use single scoped cache key for cargo-chef layer
1 parent 96e724d commit 733c6b2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/release-backend.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ jobs:
4141
platforms: linux/amd64
4242
push: true
4343
tags: ${{ steps.meta.outputs.tags }}
44-
# Aggressive caching - separate dependency layer from app
45-
cache-from: |
46-
type=gha,scope=backend-deps
47-
type=gha,scope=backend-release
48-
type=registry,ref=ghcr.io/${{ github.repository_owner }}/bancwr-diogel-backend:buildcache
49-
cache-to: |
50-
type=gha,scope=backend-deps,mode=max
51-
type=gha,scope=backend-release,mode=max
52-
type=registry,ref=ghcr.io/${{ github.repository_owner }}/bancwr-diogel-backend:buildcache,mode=max
53-
# Export cache for cargo-chef layer
44+
cache-from: type=gha,scope=backend-cargo-chef
45+
cache-to: type=gha,scope=backend-cargo-chef,mode=max
5446
provenance: false

0 commit comments

Comments
 (0)