Skip to content

Commit b72eaad

Browse files
authored
Cache to registry image instead of gha (#2)
1 parent 730f75a commit b72eaad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
file: ./Dockerfile
5858
platforms: linux/amd64,linux/arm/v7,linux/arm64
5959
target: final
60-
cache-from: type=gha
61-
cache-to: ${{ github.event_name == 'release' && 'type=gha' || '' }}
60+
cache-from: type=registry,ref=ghcr.io/esphome/docker-base:cache
61+
cache-to: ${{ github.event_name == 'release' && 'type=registry,ref=ghcr.io/esphome/docker-base:cache' || '' }}
6262
push: ${{ github.event_name != 'pull_request' }}
6363
tags: |
6464
ghcr.io/esphome/docker-base:${{ steps.get_tag.outputs.version }}

0 commit comments

Comments
 (0)