Skip to content

Commit fa9122a

Browse files
committed
Switch docker cache to github actions backend
We were failing to push cached images to the registry, because we're no longer logging to the GHCR. In addition, secrets.GITHUB_TOKEN would need to be expanded to support writing to the container registry, and giving that to arbitrary PRs isn't great. The GitHub Actions build cache is auto-clearing after 7 days, and requires no auth.
1 parent e2b591a commit fa9122a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ jobs:
6565
labels: "gitsha1=${{ github.sha }}"
6666
tags: "${{ steps.set-tag.outputs.tags }}"
6767
platforms: linux/amd64,linux/arm64
68-
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
69-
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
68+
cache-from: type=gha,
69+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)